share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/backstab.lua
changeset 15172 dc94bb5990a0
parent 15167 9d4a6ab60dec
equal deleted inserted replaced
15171:2765731b378b 15172:dc94bb5990a0
  1190   if stage == platformStage then
  1190   if stage == platformStage then
  1191     if wave3TurnsLeft == nil then
  1191     if wave3TurnsLeft == nil then
  1192       wave3TurnsLeft = 7
  1192       wave3TurnsLeft = 7
  1193     end
  1193     end
  1194     if wave3TurnsLeft > 0 then
  1194     if wave3TurnsLeft > 0 then
  1195       AddCaption(string.format(loc("Turns until arrival: %d"), wave3TurnsLeft))
  1195       -- Workaround for the FIXME below: Use capgrpAmmoinfo to overwrite the incorrect ammo display
       
  1196       AddCaption(string.format(loc("Turns until arrival: %d"), wave3TurnsLeft), capcolDefault, capgrpAmmoinfo)
  1196     end
  1197     end
  1197   end
  1198   end
  1198   if deployedHog then
  1199   if deployedHog then
  1199     if GetHogTeamName(CurrentHedgehog) == nativesTeamName then
  1200     if GetHogTeamName(CurrentHedgehog) == nativesTeamName then
       
  1201       -- FIXME: This screws up the selected weapon caption, as
       
  1202       -- this function does not update the selected display caption (workaround above)
  1200       AnimSwitchHog(deployedHog)
  1203       AnimSwitchHog(deployedHog)
  1201     end
  1204     end
  1202   end
  1205   end
  1203 
  1206 
  1204   if stage == spyKillStage then
  1207   if stage == spyKillStage then