ASA fruit02: Add workaround for incorrect weapon display on turn start
authorWuzzy <Wuzzy2@mail.ru>
Mon, 03 Jun 2019 15:37:32 +0200
changeset 15111 f9d57bade2a5
parent 15110 e7ef969be8f4
child 15112 b4a0dc4e85e8
ASA fruit02: Add workaround for incorrect weapon display on turn start
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit02.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit02.lua	Mon Jun 03 13:13:49 2019 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit02.lua	Mon Jun 03 15:37:32 2019 +0200
@@ -264,8 +264,12 @@
 		SkipTurn()
 	elseif (not inBattle) and GetHogTeamName(CurrentHedgehog) == teamA.name then
 		if CurrentHedgehog ~= hero.gear then
+			-- FIXME: This screw up the selected weapon caption, as
+			-- SwitchHog does not update the selected display caption
 			AnimSwitchHog(hero.gear)
 		end
+		-- Workaround: Add a caption that overwrites the displayed weapon display
+		AddCaption(loc("Let's go!"), capcolDefault, capgrpAmmoinfo)
 		SetTurnTimeLeft(MAX_TURN_TIME)
 		wind()
 	elseif inBattle then