[Freeciv-Dev] (PR#3446) endgame report (fix)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Here's a small fix to the endgame report:
The score-value of spaceship is 100 points per 10,000 citizens,
so a 32-bit integer should be sent in the packet.
I'm not shure how informative this spaceship score is, though...
Andreas Røsdal
diff -ruN -Xfreeciv-fix/diff_ignore freeciv-cvs/common/packets.c
freeciv-fix/common/packets.c
--- freeciv-cvs/common/packets.c 2003-09-22 18:54:08.000000000 +0200
+++ freeciv-fix/common/packets.c 2003-09-23 13:30:54.000000000 +0200
@@ -3330,7 +3330,7 @@
dio_put_uint32(&dout, packet->landarea[i]);
dio_put_uint32(&dout, packet->settledarea[i]);
dio_put_uint16(&dout, packet->literacy[i]);
- dio_put_uint8(&dout, packet->spaceship[i]);
+ dio_put_uint32(&dout, packet->spaceship[i]);
}
SEND_PACKET_END;
@@ -3361,7 +3361,7 @@
dio_get_uint32(&din, &packet->landarea[i]);
dio_get_uint32(&din, &packet->settledarea[i]);
dio_get_uint16(&din, &packet->literacy[i]);
- dio_get_uint8(&din, &packet->spaceship[i]);
+ dio_get_uint32(&din, &packet->spaceship[i]);
}
RECEIVE_PACKET_END(packet);
- [Freeciv-Dev] (PR#3446) Review results., Remi Bonnet, 2003/09/11
- Message not available
- [Freeciv-Dev] Re: (PR#3446) Review results., andrearo@xxxxxxxxxxxx, 2003/09/11
- Message not available
- [Freeciv-Dev] Re: (PR#3446) Review results., Remi Bonnet, 2003/09/11
- Message not available
- [Freeciv-Dev] Re: (PR#3446) Report at endgame, andrearo@xxxxxxxxxxxx, 2003/09/12
- Message not available
- [Freeciv-Dev] (PR#3446) End of review, Remi Bonnet, 2003/09/12
- Message not available
- [Freeciv-Dev] (PR#3446) endgame report (fix),
andrearo@xxxxxxxxxxxx <=
- Message not available
- [Freeciv-Dev] Re: (PR#3446) endgame report (fix), Jason Short, 2003/09/23
- Message not available
- [Freeciv-Dev] Re: (PR#3446) endgame report (fix), andrearo@xxxxxxxxxxxx, 2003/09/23
|
|