CS: Disable game flags incompatible with this script
authorWuzzy <Wuzzy@disroot.org>
Wed, 28 Jun 2023 18:57:00 +0200
changeset 15997 f362e82cddcf
parent 15996 605697b8947a
child 15998 91c487e7d11d
CS: Disable game flags incompatible with this script
share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua	Wed Jun 28 17:06:22 2023 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua	Wed Jun 28 18:57:00 2023 +0200
@@ -1144,6 +1144,8 @@
 
 function onGameInit()
 	SuddenDeathTurns= SuddenDeathTurns+1
+	-- Disable GameFlags that are incompatible with this game
+	DisableGameFlags(gfKing, gfPlaceHog, gfPerHogAmmo, gfSharedAmmo, gfResetWeps)
 end
 
 function onEndTurn()