# HG changeset patch # User nemo # Date 1268085160 0 # Node ID 79024988792e99e2c276920b466056db853cad58 # Parent f59631c3c1c0a8274039bf1d05de5fe6703b25f9 This *should* solve issue w/ cursor moving around in ammo menu while not your turn NEEDS TESTING, changing uIO makes me nervous diff -r f59631c3c1c0 -r 79024988792e hedgewars/uIO.pas --- a/hedgewars/uIO.pas Mon Mar 08 01:42:23 2010 +0000 +++ b/hedgewars/uIO.pas Mon Mar 08 21:52:40 2010 +0000 @@ -317,8 +317,11 @@ // these are equations solved for CursorPoint // SDLNet_Read16(@(headcmd^.X)) == CursorPoint.X - WorldDx; // SDLNet_Read16(@(headcmd^.Y)) == cScreenHeight - CursorPoint.Y - WorldDy; - CursorPoint.X:= SmallInt(SDLNet_Read16(@(headcmd^.X))) + WorldDx; - CursorPoint.Y:= cScreenHeight - SmallInt(SDLNet_Read16(@(headcmd^.Y))) - WorldDy; + if not (CurrentTeam^.ExtDriven and bShowAmmoMenu) then + begin + CursorPoint.X:= SmallInt(SDLNet_Read16(@(headcmd^.X))) + WorldDx; + CursorPoint.Y:= cScreenHeight - SmallInt(SDLNet_Read16(@(headcmd^.Y))) - WorldDy + end end; 'w': ParseCommand('setweap ' + headcmd^.str[2], true); 't': ParseCommand('taunt ' + headcmd^.str[2], true);