Changeset b48ef09 in network-game for common/Game.cpp


Ignore:
Timestamp:
Sep 27, 2013, 3:43:51 PM (12 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
7d8d5d3
Parents:
803566d
Message:

New message types and server code for creating and joining games

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/Game.cpp

    r803566d rb48ef09  
    4848
    4949bool Game::addPlayer(Player* p) {
    50    if (players.count(p->id) == 0) {
     50   if (players.find(p->id) == players.end()) {
    5151      players[p->id] = p;
    5252      return true;
Note: See TracChangeset for help on using the changeset viewer.