Wargus / wargus

Importer and scripts for Warcraft II: Tides of Darkness, the expansion Beyond the Dark Portal, and Aleonas Tales
GNU General Public License v2.0
355 stars 55 forks source link

Repaired buildings shown as red on minimap #410

Open AMDmi3 opened 2 years ago

AMDmi3 commented 2 years ago

Describe the bug I'm not sure whether the begavior is incorrect and I don't remember how original game behave, so please close this if I'm wrong, but it looks like damaged units and buildings are shown as red on minimap, but buildings which were repaired to full health are still red.

It may be (un)related, but I've also noticed that fire on damaged buildings disappears when they are nearly destroyed. So there may be some health miscalculation/off-by-one or float conversion issue.

Expected behavior Repaired buildings showb on minimap as green?

Screenshots and Logs 2

Desktop (please complete the following information):

Bomfunk commented 2 years ago

I have also noticed that this happens to both units and buildings that were ever damaged at all, but only after the saved game is loaded.