Changeset a6066e8 in network-game for client


Ignore:
Timestamp:
May 25, 2013, 7:36:19 PM (12 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
e4c60ba
Parents:
df79cfd
Message:

Players are the color of their team instead of always being red

File:
1 edited

Legend:

Unmodified
Added
Removed
  • client/Client/main.cpp

    rdf79cfd ra6066e8  
    650650
    651651      if (p->id == curPlayerId)
     652         al_draw_filled_circle(pos.x, pos.y, 14, al_map_rgb(0, 0, 0));
     653     
     654      if (p->team == 0)
     655         al_draw_filled_circle(pos.x, pos.y, 12, al_map_rgb(0, 0, 255));
     656      else if (p->team == 1)
    652657         al_draw_filled_circle(pos.x, pos.y, 12, al_map_rgb(255, 0, 0));
    653       else
    654          al_draw_filled_circle(pos.x, pos.y, 12, al_map_rgb(191, 0, 0));
    655658
    656659      if (p->hasBlueFlag)
    657660         al_draw_filled_rectangle(pos.x+4, pos.y-18, pos.x+18, pos.y-4, al_map_rgb(0, 0, 255));
    658       else if(p->hasRedFlag)
     661      else if (p->hasRedFlag)
    659662         al_draw_filled_rectangle(pos.x+4, pos.y-18, pos.x+18, pos.y-4, al_map_rgb(255, 0, 0));
    660663   }
Note: See TracChangeset for help on using the changeset viewer.