# HG changeset patch
# User unc0rr
# Date 1346796711 -14400
# Node ID 9485b88f6a44ca64ba71ac34103cab899dd8e9c8
# Parent  a85e1c167b695bace826e028e59c2cdcf929c66f
Stop messages without possible desync on load from save

diff -r a85e1c167b69 -r 9485b88f6a44 hedgewars/uGame.pas
--- a/hedgewars/uGame.pas	Tue Sep 04 13:18:26 2012 +0200
+++ b/hedgewars/uGame.pas	Wed Sep 05 02:11:51 2012 +0400
@@ -26,7 +26,9 @@
 ////////////////////
     implementation
 ////////////////////
-uses uInputHandler, uTeams, uIO, uAI, uGears, uSound, uMobile, uVisualGears, uTypes, uVariables{$IFDEF SDL13}, uTouch{$ENDIF};
+uses uInputHandler, uTeams, uIO, uAI, uGears, uSound, uMobile, 
+    uVisualGears, uTypes, uVariables, uCommands, uConsts
+    {$IFDEF SDL13}, uTouch{$ENDIF};
 
 procedure DoGameTick(Lag: LongInt);
 var i: LongInt;
@@ -88,7 +90,7 @@
                 gmtSave: begin
                         RestoreTeamsFromSave;
                         SetBinds(CurrentTeam^.Binds);
-                        //CurrentHedgehog^.Gear^.Message:= 0; <- produces bugs with further save restoring and demos
+                        StopMessages(gmLeft or gmRight or gmUp or gmDown);
                         ResetSound;   // restore previous sound state
                         PlayMusic;
                         GameType:= gmtLocal;