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


Ignore:
Timestamp:
May 18, 2013, 9:33:05 PM (12 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
035d852
Parents:
b26229c
Message:

Picking up flags works correctly now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • client/Client/main.cpp

    rb26229c ra78c387  
    544544            al_draw_filled_rectangle(x*25+mapPos.x, y*25+mapPos.y, x*25+25+mapPos.x, y*25+25+mapPos.y, al_map_rgb(100, 100, 0));
    545545
    546          if (obj == WorldMap::OBJECT_RED_FLAG)
     546         if (obj == WorldMap::OBJECT_BLUE_FLAG)
     547            al_draw_filled_rectangle(x*25+5+mapPos.x, y*25+5+mapPos.y, x*25+20+mapPos.x, y*25+20+mapPos.y, al_map_rgb(0, 0, 255));
     548         else if (obj == WorldMap::OBJECT_RED_FLAG)
    547549            al_draw_filled_rectangle(x*25+5+mapPos.x, y*25+5+mapPos.y, x*25+20+mapPos.x, y*25+20+mapPos.y, al_map_rgb(255, 0, 0));
    548          else if (obj == WorldMap::OBJECT_BLUE_FLAG)
    549             al_draw_filled_rectangle(x*25+5+mapPos.x, y*25+5+mapPos.y, x*25+20+mapPos.x, y*25+20+mapPos.y, al_map_rgb(0, 0, 255));
    550550      }
    551551   }
Note: See TracChangeset for help on using the changeset viewer.