BRW: Fix Lua error after using timebox
authorWuzzy <Wuzzy2@mail.ru>
Sat, 05 Jan 2019 23:15:13 +0100
changeset 14545 b5618fa33a49
parent 14544 e176bf229649
child 14546 029f40c609b4
BRW: Fix Lua error after using timebox
ChangeLog.txt
share/hedgewars/Data/Scripts/Multiplayer/Balanced_Random_Weapon.lua
--- a/ChangeLog.txt	Sat Jan 05 22:22:36 2019 +0100
+++ b/ChangeLog.txt	Sat Jan 05 23:15:13 2019 +0100
@@ -18,6 +18,7 @@
  * Fix homing bee flying weird if passing wrap world edge or target was placed beyond it
  * King Mode: Fix team sometimes not being killed properly if king drowned
  * King Mode: Kill resurrected minions if king is not alive
+ * Balanced Random Weapon: Fix Lua errors after using Time Box
  * Fix poison damage not working in first round
  * Hide most HUD elements in cinematic mode
  * Don't show "F1", "F2", etc. in ammo menu if these aren't the actual slot keys
--- a/share/hedgewars/Data/Scripts/Multiplayer/Balanced_Random_Weapon.lua	Sat Jan 05 22:22:36 2019 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Balanced_Random_Weapon.lua	Sat Jan 05 23:15:13 2019 +0100
@@ -264,6 +264,14 @@
     end
 end
 
+function onHogHide(gear)
+    trackHiding(gear)
+end
+
+function onHogRestore(gear)
+    trackRestoring(gear)
+end
+
 function onGearDelete(gear)
     trackDeletion(gear)
 end