Changeset dfc81f0 in network-game for client/Client/GameRender.cpp


Ignore:
Timestamp:
Jul 4, 2014, 8:35:43 PM (10 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
b1ce08c
Parents:
3476207
Message:

Fix potential client run-time error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • client/Client/GameRender.cpp

    r3476207 rdfc81f0  
    22
    33#include <cmath>
     4#include <iostream>
    45
    56#include <allegro5/allegro_primitives.h>
    67
    78#include "../../common/Common.h"
     9
     10using namespace std;
    811
    912void GameRender::drawMap(WorldMap* gameMap)
     
    97100      else if (p->team == 1)
    98101         color = al_map_rgb(255, 0, 0);
     102      else {
     103         color = al_map_rgb(0, 0, 0);
     104         cout << "Failed to determine player team when drawing player" << endl;
     105      }
    99106     
    100107      al_draw_filled_circle(pos.x, pos.y, 12, color);
Note: See TracChangeset for help on using the changeset viewer.