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


Ignore:
Timestamp:
Sep 24, 2013, 4:39:52 PM (11 years ago)
Author:
Dmitry Portnoy <dportnoy@…>
Branches:
master
Children:
3eac3b3
Parents:
b72ed16
Message:

Fixed taking/dropping flags, which was broken by the new lobby code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • client/Client/main.cpp

    rb72ed16 r85bf1e2  
    325325               break;
    326326            case ALLEGRO_KEY_S:  // pickup an item next to you
    327                if (state == STATE_LOBBY) {
     327               if (state == STATE_GAME) {
    328328                  msgTo.type = MSG_TYPE_PICKUP_FLAG;
    329329                  memcpy(msgTo.buffer, &curPlayerId, 4);
     
    332332               break;
    333333            case ALLEGRO_KEY_D:  // drop the current item
    334                if (state == STATE_LOBBY) {
     334               if (state == STATE_GAME) {
    335335                  // find the current player in the player list
    336336                  map<unsigned int, Player>::iterator it;
Note: See TracChangeset for help on using the changeset viewer.