- Timestamp:
- Jan 20, 2014, 4:59:34 PM (11 years ago)
- Branches:
- master
- Children:
- 949cf70
- Parents:
- d998572
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/server.cpp
rd998572 r9ba9b96 450 450 cout << "PLAYER_MOVE" << endl; 451 451 452 int id, x, y; 452 unsigned int id; 453 int x, y; 453 454 454 455 memcpy(&id, clientMsg.buffer, 4); … … 493 494 cout << "PICKUP_FLAG" << endl; 494 495 495 int id;496 unsigned int id; 496 497 497 498 memcpy(&id, clientMsg.buffer, 4); … … 499 500 500 501 Player* p = mapPlayers[id]; 501 int objectId = p->currentGame->processFlagPickupRequest(p);502 unsigned int objectId = p->currentGame->processFlagPickupRequest(p); 502 503 503 504 if (objectId >= 0) { … … 520 521 cout << "DROP_FLAG" << endl; 521 522 522 int id;523 unsigned int id; 523 524 524 525 memcpy(&id, clientMsg.buffer, 4); … … 550 551 cout << "Received a START_ATTACK message" << endl; 551 552 552 int id, targetId;553 unsigned int id, targetId; 553 554 554 555 memcpy(&id, clientMsg.buffer, 4); … … 726 727 serverMsg.type = MSG_TYPE_SCORE; 727 728 728 int blueScore = g->getBlueScore();729 int redScore = g->getRedScore();729 unsigned int blueScore = g->getBlueScore(); 730 unsigned int redScore = g->getRedScore(); 730 731 memcpy(serverMsg.buffer, &blueScore, 4); 731 732 memcpy(serverMsg.buffer+4, &redScore, 4);
Note:
See TracChangeset
for help on using the changeset viewer.