- Timestamp:
- May 25, 2013, 6:53:59 PM (11 years ago)
- Branches:
- master
- Children:
- df79cfd
- Parents:
- 7511a2b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/server.cpp
r7511a2b rb8cb03f 190 190 } 191 191 192 // remove the object f orm the server-side map192 // remove the object from the server-side map 193 193 cout << "size before: " << gameMap->getObjects()->size() << endl; 194 194 itObjects = vctObjects->erase(itObjects); … … 218 218 219 219 if (n >= 0) { 220 cout << "Got a message" << endl;221 222 220 broadcastResponse = processMessage(clientMsg, from, mapPlayers, gameMap, unusedId, serverMsg, sock); 223 221 … … 225 223 // message type 226 224 cout << "msg: " << serverMsg.buffer << endl; 227 cout << "broadcastResponse: " << broadcastResponse << endl;228 225 if (broadcastResponse) 229 226 { … … 255 252 DataAccess da; 256 253 254 cout << "Received message" << endl; 257 255 cout << "MSG: type: " << clientMsg.type << endl; 258 256 cout << "MSG contents: " << clientMsg.buffer << endl; … … 381 379 mapPlayers.erase(p->id); 382 380 strcpy(serverMsg.buffer, "You have successfully logged out."); 383 cout << "Player logged out successfuly" << endl;384 381 } 385 382 … … 504 501 } 505 502 506 cout << "Got to the end of the switch" << endl;507 508 503 return broadcastResponse; 509 504 }
Note:
See TracChangeset
for help on using the changeset viewer.