share/hedgewars/Data/Scripts/Multiplayer/Random_Weapon.lua
changeset 10044 33e64afccd3b
parent 10036 3be36d2fdca6
child 12207 2de020695c20
--- a/share/hedgewars/Data/Scripts/Multiplayer/Random_Weapon.lua	Tue Jan 21 23:46:48 2014 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Random_Weapon.lua	Tue Jan 21 23:53:26 2014 +0100
@@ -46,7 +46,8 @@
 
 function onGameInit()
     -- Limit flags that can be set, but allow game schemes to be used
-    GameFlags = band(bor(GameFlags, gfResetWeps), bnot(gfInfAttack))
+    DisableGameFlags(gfInfAttack)
+    EnableGameFlags(gfResetWeps)
     -- Set a custom game goal that will show together with the scheme ones
     Goals = loc("Each turn you get one random weapon")
 end