Follow-up Comment #8, patch #1501 (project freeciv):
If killunhomed = 100, the result will be hp = 0. I think the correct
algorithm you want is:
punit->hp = MAX((punit->hp * (100 - game.server.killunhomed)) / 100, 1);
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?1501>
_______________________________________________
Message posté via/par Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev