forked from mirror/OpenTTD
(svn r2583) Move OS specific code out of misc.c
Added support for Mersenne Twister random number generator (not implemented in network yet) Wrap player randoms around #ifdef
This commit is contained in:
@@ -323,7 +323,9 @@ DEF_SERVER_SEND_COMMAND(PACKET_SERVER_MAP)
|
||||
NetworkSend_Packet(p, cs);
|
||||
if (feof(file_pointer)) {
|
||||
// Done reading!
|
||||
#ifdef PLAYER_SEED_RANDOM
|
||||
int i;
|
||||
#endif
|
||||
Packet *p;
|
||||
|
||||
// XXX - Delete this when patch-settings are saved in-game
|
||||
@@ -331,11 +333,13 @@ DEF_SERVER_SEND_COMMAND(PACKET_SERVER_MAP)
|
||||
|
||||
p = NetworkSend_Init(PACKET_SERVER_MAP);
|
||||
NetworkSend_uint8(p, MAP_PACKET_END);
|
||||
#ifdef PLAYER_SEED_RANDOM
|
||||
// Send the player_seeds in this packet
|
||||
for (i = 0; i < MAX_PLAYERS; i++) {
|
||||
NetworkSend_uint32(p, _player_seeds[i][0]);
|
||||
NetworkSend_uint32(p, _player_seeds[i][1]);
|
||||
}
|
||||
#endif
|
||||
NetworkSend_Packet(p, cs);
|
||||
|
||||
// Set the status to DONE_MAP, no we will wait for the client
|
||||
|
Reference in New Issue
Block a user