Fix SimpleMission failure to init GameFlags correctly 0.9.24
authorWuzzy <Wuzzy2@mail.ru>
Wed, 01 Aug 2018 23:12:37 +0200
branch0.9.24
changeset 13593 c3d8469cc68e
parent 13570 730e7837d9df
child 13594 4acd189a563e
Fix SimpleMission failure to init GameFlags correctly Also fixes broken gfInfAttack in The Great Escape
ChangeLog.txt
share/hedgewars/Data/Scripts/SimpleMission.lua
--- a/ChangeLog.txt	Fri Jul 27 12:45:10 2018 -0400
+++ b/ChangeLog.txt	Wed Aug 01 23:12:37 2018 +0200
@@ -8,6 +8,7 @@
  * Prevent creation of schemes with same name as an existing scheme
  * Fix teleport tooltip claiming it doesn't end turn in hog placing phase with inf. attack
  * Fix /hta, /hsa and /hya commands not writing message in chat
+ * Fix broken infinite attack in mission The Great Escape
  + Add default controls for controllers (see README)
 
 ====================== 0.9.24.1 ====================
--- a/share/hedgewars/Data/Scripts/SimpleMission.lua	Fri Jul 27 12:45:10 2018 -0400
+++ b/share/hedgewars/Data/Scripts/SimpleMission.lua	Wed Aug 01 23:12:37 2018 +0200
@@ -638,7 +638,7 @@
 		Explosives = 0
 
 		for initVarName, initVarValue in pairs(params.initVars) do
-			if initVarName == GameFlags then
+			if initVarName == "GameFlags" then
 				EnableGameFlags(initVarValue)
 			else
 				_G[initVarName] = initVarValue