Changeset f66d04f in network-game for client/Client/main.cpp
- Timestamp:
- Jan 24, 2014, 12:37:10 AM (11 years ago)
- Branches:
- master
- Children:
- 99cf349
- Parents:
- 7f884ea
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
client/Client/main.cpp
r7f884ea rf66d04f 377 377 378 378 if (p != NULL) { 379 int flagType = WorldMap::OBJECT_NONE;379 int flagType = OBJECT_NONE; 380 380 381 381 if (p->hasBlueFlag) 382 flagType = WorldMap::OBJECT_BLUE_FLAG;382 flagType = OBJECT_BLUE_FLAG; 383 383 else if (p->hasRedFlag) 384 flagType = WorldMap::OBJECT_RED_FLAG;385 386 if (flagType != WorldMap::OBJECT_NONE) {384 flagType = OBJECT_RED_FLAG; 385 386 if (flagType != OBJECT_NONE) { 387 387 msgTo.type = MSG_TYPE_DROP_FLAG; 388 388 memcpy(msgTo.buffer, &curPlayerId, 4); … … 1029 1029 cout << "Received object message in STATE_GAME" << endl; 1030 1030 1031 WorldMap::Object o(0, WorldMap::OBJECT_NONE, 0, 0);1031 WorldMap::Object o(0, OBJECT_NONE, 0, 0); 1032 1032 o.deserialize(msg.buffer); 1033 1033 cout << "object id: " << o.id << endl;
Note:
See TracChangeset
for help on using the changeset viewer.