Changeset e1af80c in network-game


Ignore:
Timestamp:
Dec 23, 2013, 11:50:11 PM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
68d94de
Parents:
635ad9b
Message:

When a game ends, the server sets currentGame to NULL for all participants

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/server.cpp

    r635ad9b re1af80c  
    164164            if (p->isDead)
    165165            {
     166               cout << "Player is dead" << endl;
    166167
    167168               if (getCurrentMillis() - p->timeDied >= 10000)
     
    544545               for (it2 = mapPlayers.begin(); it2 != mapPlayers.end(); it2++)
    545546               {
     547                  if (it2->second->currentGame == game)
     548                      it2->second->currentGame = NULL;
    546549                  if ( msgProcessor.sendMessage(&serverMsg, sock, &(it2->second->addr), &outputLog) < 0 )
    547550                     error("sendMessage");
Note: See TracChangeset for help on using the changeset viewer.