Changeset 3d6f78f in network-game for server/server.cpp
- Timestamp:
- Dec 17, 2013, 12:46:17 AM (11 years ago)
- Branches:
- master
- Children:
- 1248984
- Parents:
- b4c5b6a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/server.cpp
rb4c5b6a r3d6f78f 1095 1095 Player* p = findPlayerByAddr(mapPlayers, from); 1096 1096 p->team = rand() % 2; // choose a random team (either 0 or 1) 1097 p->currentGame = g; 1097 p->currentGame = g; // should have been done in JOIN_GAME, so not necessary 1098 1098 1099 1099 map<unsigned int, Player*>& otherPlayers = g->getPlayers();
Note:
See TracChangeset
for help on using the changeset viewer.