Follow-up Comment #6, patch #1501 (project freeciv):
You must cast the calculation with (double), or the calculation will be done
as integer before passing to the function ceil(), so having no effect:
punit->hp -= ceil((double) punit->hp * game.server.killunhomed / 100);
_______________________________________________________
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