Follow-up Comment #1, patch #4819 (project freeciv):

Are you sure the following line is correct?

(int) (cost * 1.41421356f)


I thought in this case the multiplication would be done in integer (due to the
type of 'cost'), which would result as multiply cost by 1 (so effect).

I would have wrote:

(int) (1.41421356f * cost)



    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?4819>

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to