Racer, TechRacer: Force-disable several bad game flags
authorWuzzy <Wuzzy2@mail.ru>
Sun, 15 Sep 2019 15:42:50 +0200
changeset 15402 1028f5606b5f
parent 15401 bf49f26b1fa9
child 15403 e347c3508f95
Racer, TechRacer: Force-disable several bad game flags
share/hedgewars/Data/Scripts/Multiplayer/Racer.lua
share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Sun Sep 15 15:20:35 2019 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Sun Sep 15 15:42:50 2019 +0200
@@ -610,6 +610,8 @@
 
 function onGameInit()
         EnableGameFlags(gfInfAttack)
+        -- Force-disable various game flags that would break the script
+        DisableGameFlags(gfKing, gfSwitchHog, gfAISurvival, gfPlaceHog, gfTagTeam)
         CaseFreq = 0
         TurnTime = 90000
         WaterRise = 0
--- a/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua	Sun Sep 15 15:20:35 2019 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua	Sun Sep 15 15:42:50 2019 +0200
@@ -714,6 +714,7 @@
 
 	EnableGameFlags(gfInfAttack, gfDisableWind, gfBorder)
 	DisableGameFlags(gfSolidLand)
+	DisableGameFlags(gfKing, gfSwitchHog, gfAISurvival, gfPlaceHog, gfTagTeam)
 	CaseFreq = 0
 	TurnTime = 90000
 	WaterRise = 0