Changeset cc1c6c1 in network-game for client


Ignore:
Timestamp:
May 19, 2013, 8:36:44 PM (12 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
6e66ffd
Parents:
05051c7
Message:

Updated the client to use structures instead of objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • client/Client/main.cpp

    r05051c7 rcc1c6c1  
    535535      {
    536536         WorldMap::TerrainType el = gameMap->getElement(x, y);
    537          WorldMap::ObjectType obj = gameMap->getObject(x, y);
     537         WorldMap::StructureType structure = gameMap->getStructure(x, y);
    538538
    539539         if (el == WorldMap::TERRAIN_GRASS)
     
    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_BLUE_FLAG)
     546         if (structure == WorldMap::STRUCTURE_BLUE_FLAG)
    547547            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)
    549549            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));
    550550      }
Note: See TracChangeset for help on using the changeset viewer.