Changeset f66d04f in network-game for client/Client/main.cpp


Ignore:
Timestamp:
Jan 24, 2014, 12:37:10 AM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
99cf349
Parents:
7f884ea
Message:

Client update for map structs refactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • client/Client/main.cpp

    r7f884ea rf66d04f  
    377377
    378378                  if (p != NULL) {
    379                      int flagType = WorldMap::OBJECT_NONE;
     379                     int flagType = OBJECT_NONE;
    380380
    381381                     if (p->hasBlueFlag)
    382                         flagType = WorldMap::OBJECT_BLUE_FLAG;
     382                        flagType = OBJECT_BLUE_FLAG;
    383383                     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) {
    387387                        msgTo.type = MSG_TYPE_DROP_FLAG;
    388388                        memcpy(msgTo.buffer, &curPlayerId, 4);
     
    10291029               cout << "Received object message in STATE_GAME" << endl;
    10301030
    1031                WorldMap::Object o(0, WorldMap::OBJECT_NONE, 0, 0);
     1031               WorldMap::Object o(0, OBJECT_NONE, 0, 0);
    10321032               o.deserialize(msg.buffer);
    10331033               cout << "object id: " << o.id << endl;
Note: See TracChangeset for help on using the changeset viewer.