Changeset 306758e in network-game for common/Game.cpp


Ignore:
Timestamp:
Nov 8, 2014, 1:13:40 AM (10 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
master
Children:
7fa452f
Parents:
f3dfead
Message:

Remove the serverSide argument from Game::addPlayer() since it's no longer useful

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/Game.cpp

    rf3dfead r306758e  
    4343}
    4444
    45 bool Game::addPlayer(Player* p, bool serverSide) {
     45bool Game::addPlayer(Player* p) {
    4646   if (players.find(p->getId()) == players.end()) {
    4747      players[p->getId()] = p;
     
    5757      p->hasBlueFlag = false;
    5858      p->hasRedFlag = false;
    59 
    60       if (serverSide) {
    61          // choose a random team (either 0 or 1)
    62          p->team = rand() % 2;
    63       }
    6459
    6560      p->currentGame = this;
Note: See TracChangeset for help on using the changeset viewer.