# HG changeset patch # User Wuzzy # Date 1559569052 -7200 # Node ID f9d57bade2a5677b24d680aa7ae01726a6b14933 # Parent e7ef969be8f4bcbcde1a2852c29816cd166ee242 ASA fruit02: Add workaround for incorrect weapon display on turn start diff -r e7ef969be8f4 -r f9d57bade2a5 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