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


Ignore:
Timestamp:
May 18, 2013, 6:36:54 PM (12 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
7efed11
Parents:
7f2cef0
Message:

Modified the player class to include the team and whether the player has either of the flags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • client/Client/main.cpp

    r7f2cef0 rd436ac4  
    523523}
    524524
     525// this should probably be in the WorldMap class
    525526void drawMap(WorldMap* gameMap)
    526527{
     
    563564      pos = mapToScreen(p->pos);
    564565
    565       if (p->id == curPlayerId)
    566          al_draw_filled_circle(pos.x, pos.y, 12, al_map_rgb(255, 0, 0));
    567       else
    568          al_draw_filled_circle(pos.x, pos.y, 12, al_map_rgb(191, 0, 0));
     566      p->draw(pos, p->id == curPlayerId);
    569567   }
    570568}
Note: See TracChangeset for help on using the changeset viewer.