Changeset 5299436 in network-game for server


Ignore:
Timestamp:
May 25, 2013, 10:50:26 PM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
e330873
Parents:
7553db9
Message:

Added a PICKUP_FLAG message type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/server.cpp

    r7553db9 r5299436  
    515515         break;
    516516      }
     517      case MSG_TYPE_PICKUP_FLAG:
     518      {
     519         // may want to check the id matches the sender, just like for PLAYER_NOVE
     520         cout << "PICKUP_FLAG" << endl;
     521
     522         int id;
     523
     524         memcpy(&id, clientMsg.buffer, 4);
     525         cout << "id: " << id << endl;
     526
     527         break;
     528      }
    517529      case MSG_TYPE_DROP_FLAG:
    518530      {
Note: See TracChangeset for help on using the changeset viewer.