This *should* solve issue w/ cursor moving around in ammo menu while not your turn NEEDS TESTING, changing uIO makes me nervous
authornemo
Mon, 08 Mar 2010 21:52:40 +0000
changeset 2969 79024988792e
parent 2968 f59631c3c1c0
child 2970 011075f93746
This *should* solve issue w/ cursor moving around in ammo menu while not your turn NEEDS TESTING, changing uIO makes me nervous
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);