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