:( I have no idea why this did not work
authornemo
Fri, 20 Jul 2012 19:56:58 -0400
changeset 7410 dc869f3187ca
parent 7409 fd91aa100ce0
child 7412 9e5aa3c8dc62
:( I have no idea why this did not work
hedgewars/uCommandHandlers.pas
hedgewars/uGears.pas
--- a/hedgewars/uCommandHandlers.pas	Fri Jul 20 18:48:04 2012 -0400
+++ b/hedgewars/uCommandHandlers.pas	Fri Jul 20 19:56:58 2012 -0400
@@ -786,23 +786,23 @@
 procedure initModule;
 begin
 //////// Begin top sorted by freq analysis not including chatmsg
-    RegisterVariable('+right'  , @chRight_p      , false, true);
-    RegisterVariable('-right'  , @chRight_m      , false, true);
-    RegisterVariable('+up'     , @chUp_p         , false, true);
-    RegisterVariable('-up'     , @chUp_m         , false, true);
-    RegisterVariable('+left'   , @chLeft_p       , false, true);
-    RegisterVariable('-left'   , @chLeft_m       , false, true);
-    RegisterVariable('+attack' , @chAttack_p     , false, false); // WTF?
-    RegisterVariable('+down'   , @chDown_p       , false, true);
-    RegisterVariable('-down'   , @chDown_m       , false, true);
-    RegisterVariable('hjump'   , @chHJump        , false, true);
-    RegisterVariable('ljump'   , @chLJump        , false, true);
-    RegisterVariable('nextturn', @chNextTurn     , false, true);
+    RegisterVariable('+right'  , @chRight_p      , false, false);
+    RegisterVariable('-right'  , @chRight_m      , false, false);
+    RegisterVariable('+up'     , @chUp_p         , false, false);
+    RegisterVariable('-up'     , @chUp_m         , false, false);
+    RegisterVariable('+left'   , @chLeft_p       , false, false);
+    RegisterVariable('-left'   , @chLeft_m       , false, false);
+    RegisterVariable('+attack' , @chAttack_p     , false, false);
+    RegisterVariable('+down'   , @chDown_p       , false, false);
+    RegisterVariable('-down'   , @chDown_m       , false, false);
+    RegisterVariable('hjump'   , @chHJump        , false, false);
+    RegisterVariable('ljump'   , @chLJump        , false, false);
+    RegisterVariable('nextturn', @chNextTurn     , false, false);
     RegisterVariable('-attack' , @chAttack_m     , false, false);
-    RegisterVariable('slot'    , @chSlot         , false, true);
-    RegisterVariable('setweap' , @chSetWeapon    , false, true);
+    RegisterVariable('slot'    , @chSlot         , false, false);
+    RegisterVariable('setweap' , @chSetWeapon    , false, false);
 //////// End top by freq analysis
-    RegisterVariable('gencmd'  , @chGenCmd       , false, true);
+    RegisterVariable('gencmd'  , @chGenCmd       , false, false);
     RegisterVariable('flag'    , @chFlag         , false);
     RegisterVariable('script'  , @chScript       , false);
     RegisterVariable('proto'   , @chCheckProto   , true );
--- a/hedgewars/uGears.pas	Fri Jul 20 18:48:04 2012 -0400
+++ b/hedgewars/uGears.pas	Fri Jul 20 19:56:58 2012 -0400
@@ -461,7 +461,7 @@
     if (not CurrentTeam^.ExtDriven) or CurrentTeam^.hasGone then
         inc(hiTicks) // we do not recieve a message for this
     end;
-AddRandomness(CheckSum);
+//AddRandomness(CheckSum);
 ScriptCall('onGameTick');
 if GameTicks mod 20 = 0 then ScriptCall('onGameTick20');
 inc(GameTicks)