Follow-up Comment #3, bug #18687 (project freeciv):
To network:
dio_put_uint32(&dout, (int)(real_packet->seconds_to_phasedone * 10000));
>From network:
int tmp;
dio_get_uint32(&din, &tmp);
real_packet->seconds_to_phasedone = (float)(tmp) / 10000.0;
where seconds_to_phasedone is a float.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?18687>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev