Add the parameters I missed the first time when I added these hooks.
authormikade
Sun, 25 Mar 2012 14:51:13 +0200
changeset 6818 136aa9c8c593
parent 6816 572571ea945e
child 6819 07e8de67c3c2
Add the parameters I missed the first time when I added these hooks.
hedgewars/uCommandHandlers.pas
--- a/hedgewars/uCommandHandlers.pas	Sat Mar 24 21:19:50 2012 +0400
+++ b/hedgewars/uCommandHandlers.pas	Sun Mar 25 14:51:13 2012 +0200
@@ -434,7 +434,7 @@
     begin
     Message:= Message or (gmTimer and InputMask);
     MsgParam:= byte(s[1]) - ord('0');
-    ScriptCall('onTimer');
+    ScriptCall('onTimer', MsgParam);
     end
 end;
 
@@ -453,7 +453,7 @@
     begin
     Message:= Message or (gmSlot and InputMask);
     MsgParam:= slot; 
-    ScriptCall('onSlot');
+    ScriptCall('onSlot', MsgParam);
     end
 end;
 
@@ -472,7 +472,7 @@
         begin
         Message:= Message or (gmWeapon and InputMask);
         MsgParam:= byte(s[1]);
-        ScriptCall('onSetWeapon');
+        ScriptCall('onSetWeapon', MsgParam);
         end;
 end;
 
@@ -491,7 +491,7 @@
     begin
     Message:= Message or (gmAnimate and InputMask);
     MsgParam:= byte(s[1]) ; 
-    ScriptCall('onTaunt');
+    ScriptCall('onTaunt', MsgParam);
     end
 end;