equal
deleted
inserted
replaced
337 end; |
337 end; |
338 'P': begin |
338 'P': begin |
339 // these are equations solved for CursorPoint |
339 // these are equations solved for CursorPoint |
340 // SDLNet_Read16(@(headcmd^.X)) == CursorPoint.X - WorldDx; |
340 // SDLNet_Read16(@(headcmd^.X)) == CursorPoint.X - WorldDx; |
341 // SDLNet_Read16(@(headcmd^.Y)) == cScreenHeight - CursorPoint.Y - WorldDy; |
341 // SDLNet_Read16(@(headcmd^.Y)) == cScreenHeight - CursorPoint.Y - WorldDy; |
342 if not (CurrentTeam^.ExtDriven and bShowAmmoMenu) then |
342 if CurrentTeam^.ExtDriven then |
343 begin |
343 begin |
344 CursorPoint.X:= LongInt(SDLNet_Read32(@(headcmd^.X))) + WorldDx; |
344 TargetCursorPoint.X:= LongInt(SDLNet_Read32(@(headcmd^.X))) + WorldDx; |
345 CursorPoint.Y:= cScreenHeight - LongInt(SDLNet_Read32(@(headcmd^.Y))) - WorldDy |
345 TargetCursorPoint.Y:= cScreenHeight - LongInt(SDLNet_Read32(@(headcmd^.Y))) - WorldDy; |
|
346 if not bShowAmmoMenu and autoCameraOn then |
|
347 CursorPoint:= TargetCursorPoint |
346 end |
348 end |
347 end; |
349 end; |
348 'w': ParseCommand('setweap ' + headcmd^.str[2], true); |
350 'w': ParseCommand('setweap ' + headcmd^.str[2], true); |
349 't': ParseCommand('taunt ' + headcmd^.str[2], true); |
351 't': ParseCommand('taunt ' + headcmd^.str[2], true); |
350 'h': ParseCommand('hogsay ' + copy(headcmd^.str, 2, Pred(headcmd^.len)), true); |
352 'h': ParseCommand('hogsay ' + copy(headcmd^.str, 2, Pred(headcmd^.len)), true); |