- Timestamp:
- Dec 27, 2013, 8:55:07 PM (11 years ago)
- Branches:
- master
- Children:
- 3ff2bd7
- Parents:
- f63aa57
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/server.cpp
rf63aa57 r9bfc1cb 607 607 break; 608 608 } 609 case MSG_TYPE_ START_ATTACK:609 case MSG_TYPE_ATTACK: 610 610 { 611 611 cout << "Received a START_ATTACK message" << endl; … … 624 624 map<unsigned int, Player*> players = p->currentGame->getPlayers(); 625 625 626 serverMsg.type = MSG_TYPE_ START_ATTACK;626 serverMsg.type = MSG_TYPE_ATTACK; 627 627 memcpy(serverMsg.buffer, &id, 4); 628 628 memcpy(serverMsg.buffer+4, &targetId, 4); … … 1057 1057 cout << "about to broadcast attack" << endl; 1058 1058 1059 serverMsg.type = MSG_TYPE_ATTACK;1060 memcpy(serverMsg.buffer, &p->id, 4);1061 memcpy(serverMsg.buffer+4, &p->targetPlayer, 4);1062 broadcastMessage(msgProcessor, serverMsg, playersInGame);1063 1064 1059 if (p->attackType == Player::ATTACK_MELEE) 1065 1060 {
Note:
See TracChangeset
for help on using the changeset viewer.