Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2003:
[Freeciv-Dev] (PR#3446) endgame report (fix)
Home

[Freeciv-Dev] (PR#3446) endgame report (fix)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#3446) endgame report (fix)
From: "andrearo@xxxxxxxxxxxx" <andrearo@xxxxxxxxxxxx>
Date: Tue, 23 Sep 2003 03:51:33 -0700
Reply-to: rt@xxxxxxxxxxxxxx

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);

[Prev in Thread] Current Thread [Next in Thread]