- Timestamp:
- Dec 31, 2012, 1:23:50 AM (12 years ago)
- Branches:
- master
- Children:
- 11402be
- Parents:
- eb8adb1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/server.cpp
reb8adb1 r8a3ef42 235 235 { 236 236 strcpy(serverMsg.buffer, "That player is not logged in. This is either a bug, or you're trying to hack the server."); 237 cout << "Player not logged in" << endl; 237 238 } 238 239 else if ( p->addr.sin_addr.s_addr != from.sin_addr.s_addr || … … 240 241 { 241 242 strcpy(serverMsg.buffer, "That player is logged in using a differemt connection. This is either a bug, or you're trying to hack the server."); 243 cout << "Player logged in using a different connection" << endl; 242 244 } 243 245 else … … 247 249 mapPlayers.erase(p->id); 248 250 strcpy(serverMsg.buffer, "You have successfully logged out."); 249 } 251 cout << "Player logged out successfuly" << endl; 252 } 253 254 // should really be serverMsg.type = MSG_TYPE_LOGOUT; 255 serverMsg.type = MSG_TYPE_LOGIN; 250 256 251 257 break;
Note:
See TracChangeset
for help on using the changeset viewer.