- Timestamp:
- May 19, 2013, 8:36:44 PM (11 years ago)
- Branches:
- master
- Children:
- 6e66ffd
- Parents:
- 05051c7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
client/Client/main.cpp
r05051c7 rcc1c6c1 535 535 { 536 536 WorldMap::TerrainType el = gameMap->getElement(x, y); 537 WorldMap:: ObjectType obj = gameMap->getObject(x, y);537 WorldMap::StructureType structure = gameMap->getStructure(x, y); 538 538 539 539 if (el == WorldMap::TERRAIN_GRASS) … … 544 544 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)); 545 545 546 if ( obj == WorldMap::OBJECT_BLUE_FLAG)546 if (structure == WorldMap::STRUCTURE_BLUE_FLAG) 547 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)548 else if (structure == WorldMap::STRUCTURE_RED_FLAG) 549 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(255, 0, 0)); 550 550 }
Note:
See TracChangeset
for help on using the changeset viewer.