# HG changeset patch # User Wuzzy # Date 1560797711 -7200 # Node ID dc94bb5990a0ef71ea01789e4405f78dd9cc0876 # Parent 2765731b378b9e103e4766c0f5f5da5b9bb44bd8 ACF5: Fix incorrect ammo display on turn start at wave 3 diff -r 2765731b378b -r dc94bb5990a0 share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/backstab.lua --- a/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/backstab.lua Mon Jun 17 20:27:34 2019 +0200 +++ b/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/backstab.lua Mon Jun 17 20:55:11 2019 +0200 @@ -1192,11 +1192,14 @@ wave3TurnsLeft = 7 end if wave3TurnsLeft > 0 then - AddCaption(string.format(loc("Turns until arrival: %d"), wave3TurnsLeft)) + -- Workaround for the FIXME below: Use capgrpAmmoinfo to overwrite the incorrect ammo display + AddCaption(string.format(loc("Turns until arrival: %d"), wave3TurnsLeft), capcolDefault, capgrpAmmoinfo) end end if deployedHog then if GetHogTeamName(CurrentHedgehog) == nativesTeamName then + -- FIXME: This screws up the selected weapon caption, as + -- this function does not update the selected display caption (workaround above) AnimSwitchHog(deployedHog) end end