Changeset 306758e in network-game for common/Game.cpp
- Timestamp:
- Nov 8, 2014, 1:13:40 AM (10 years ago)
- Branches:
- master
- Children:
- 7fa452f
- Parents:
- f3dfead
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/Game.cpp
rf3dfead r306758e 43 43 } 44 44 45 bool Game::addPlayer(Player* p , bool serverSide) {45 bool Game::addPlayer(Player* p) { 46 46 if (players.find(p->getId()) == players.end()) { 47 47 players[p->getId()] = p; … … 57 57 p->hasBlueFlag = false; 58 58 p->hasRedFlag = false; 59 60 if (serverSide) {61 // choose a random team (either 0 or 1)62 p->team = rand() % 2;63 }64 59 65 60 p->currentGame = this;
Note:
See TracChangeset
for help on using the changeset viewer.