- Timestamp:
- Dec 16, 2013, 2:49:26 AM (11 years ago)
- Branches:
- master
- Children:
- b4c5b6a
- Parents:
- 53d41ea
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/server.cpp
r53d41ea r1a47469 754 754 } 755 755 756 // broadcast to all players before deleting p from the map 757 map<unsigned int, Player*>::iterator it; 758 for (it = mapPlayers.begin(); it != mapPlayers.end(); it++) 759 { 760 cout << "Sent message back to " << it->second->name << endl; 761 if ( msgProcessor.sendMessage(&serverMsg, sock, &(it->second->addr), &outputLog) < 0 ) 762 error("sendMessage"); 763 } 764 756 765 if (p->id < unusedPlayerId) 757 766 unusedPlayerId = p->id; … … 759 768 delete p; 760 769 strcpy(serverMsg.buffer+4, "You have successfully logged out."); 761 broadcastResponse = true;762 770 } 763 771
Note:
See TracChangeset
for help on using the changeset viewer.