Changeset d998572 in network-game for server/server.cpp


Ignore:
Timestamp:
Jan 19, 2014, 8:19:18 PM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
9ba9b96
Parents:
1f6233e
Message:

updateTarget (from the Player class) now takes the target as a parameter instead of the whole player map

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/server.cpp

    r1f6233e rd998572  
    171171            if (p->currentGame != NULL) {
    172172               map<unsigned int, Player*> playersInGame = p->currentGame->getPlayers();
    173                if (p->updateTarget(playersInGame))
     173               if (p->updateTarget(playersInGame[p->targetPlayer]))
    174174               {
    175175                  serverMsg.type = MSG_TYPE_PLAYER;
Note: See TracChangeset for help on using the changeset viewer.