Complete.Org: Mailing Lists: Archives: freeciv-dev: January 1999:
[Freeciv-Dev] Fix for civserver 1.7.2 main()
Home

[Freeciv-Dev] Fix for civserver 1.7.2 main()

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Fix for civserver 1.7.2 main()
From: caz@xxxxxxxxxxxxxxxxxx
Date: Sat, 2 Jan 1999 00:11:05 +0200 (EET)

 To prevent civserver sending multiple PACKET_SELECT_RACE:s to certain players
lines...


 if(i<game.nplayers) {
   send_select_race(&game.players[i]);
   for(i=0; i<game.nplayers; i++)
      send_select_race(&game.players[i]);


 ...should be changed as


 if(i<game.nplayers) {
/* send_select_race(&game.players[i]); */ /* This is send in the next loop also.
*/
   for(i=0; i<game.nplayers; i++)
      if( game.players[i].race == R_LAST ) /* Only if player does't already 
have a
race. */
         send_select_race(&game.players[i]);



 Code around that part looks quite weird, but at least it seems to work fine, 
so I
don't care to make deeper digging.




 Marko Lindqvist

 Caz


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Fix for civserver 1.7.2 main(), caz <=