Fix SimpleMission failure to init GameFlags correctly
Also fixes broken gfInfAttack in The Great Escape
--- a/ChangeLog.txt Wed Aug 01 21:30:33 2018 +0200
+++ b/ChangeLog.txt Wed Aug 01 23:12:37 2018 +0200
@@ -8,6 +8,7 @@
+ Add chat command “/help”, displays help for chat commands
+ Increase hedgehog limit to 64
+ Campaigns and missions now use the user's chosen custom clan colors
+ + New default brown clan color for better contrast
* Functionality of controllers restored
* Fix crash when 2 or more controllers were connected
* Fix hammer and pickhammer not digging correctly at wrap world edge
@@ -20,17 +21,16 @@
* Fix cursor teleporting to center after leaving game with a video recording
* 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
- * New default brown clan color for better contrast
Frontend:
* Controllers are detected again
* No longer allow having schemes with equal names (case-insensitive)
Highlander:
- * Fix all hogs getting teleport after hog placement phase
+ * Fix all hogs receiving a free teleport after hog placement phase
TechRacer:
- * Fix rare bug causing crates and other objects not appearing on start of turn
+ * Fix rare bug causing crates and other objects to not appear on start of turn
Continental supplies:
+ Continents are now selected before the game starts
@@ -56,13 +56,12 @@
* Fix round score and other info numbers messing up after screen resize
* Fix kamikaze bonus not being shown
-A Classic Fairytale:
- * Fix clan membership of princess in some missions
- * Mission 5: Tribe was not in same clan as Natives, screwing up stats a bit
-
-A Space Adventure:
- + Final mission: Terrain types are easier to distinguish
- * Fix clan membership of PAotH in main Death Planet mission
+Campaigns and missions:
+ * A Classic Fairytale: Fix clan membership of princess in some missions
+ * A Classic Fairytale, Mission 5: Tribe was not in same clan as Natives, screwing up stats a bit
+ + A Space Adventure, final mission: Terrain types are easier to distinguish
+ * A Space Adeventure: Fix clan membership of PAotH in main Death Planet mission
+ * The Great Escape: Infinite attack mode did not work
Content:
+ New Sudden Death water texture for CrazyMission theme
@@ -76,7 +75,7 @@
+ New call: GetVampiric(): Returns true if vampirism is currently active
+ New call: GetLaserSight(): Returns true if laser sight (as utility) is currenctly active (ignoring sniper rifle)
+ New call: IsHogHidden(gear): Returns true if hog is hidden
- + Changed cal: AddTeam: 2nd param. color: Accepts negative value to use a default clan color from player settings
+ + Changed call: AddTeam: 2nd param. color: Accepts negative value to use a default clan color from player settings
+ New parameter: SetAmmoTexts: 5th param. showExtra: Set to false to hide texts like “Not yet available”
+ New parameter: ShowMission: 6th param. forceDisplay: Set to true to prevent this particular mission panel to be hidden manually by player
+ New Lua library: Achievements
--- a/share/hedgewars/Data/Scripts/SimpleMission.lua Wed Aug 01 21:30:33 2018 +0200
+++ b/share/hedgewars/Data/Scripts/SimpleMission.lua Wed Aug 01 23:12:37 2018 +0200
@@ -627,7 +627,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