aboutsummaryrefslogtreecommitdiffstats
path: root/src/entities.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-09-30 15:40:48 -0400
committerClyne Sullivan <tullivan99@gmail.com>2015-09-30 15:40:48 -0400
commit7fbac4fc005baed6bc94d342cf7df2c8ad7a359a (patch)
tree73ade25a5e339ba82f6c2011e74af501b192bf04 /src/entities.cpp
parentc669b83b4f273df6f6ed824b997a77267fd0186f (diff)
fixed structure drawing
Diffstat (limited to 'src/entities.cpp')
-rw-r--r--src/entities.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/entities.cpp b/src/entities.cpp
index b40ddd4..85505ce 100644
--- a/src/entities.cpp
+++ b/src/entities.cpp
@@ -19,13 +19,14 @@ void Entity::spawn(float x, float y){ //spawns the entity you pass to it based o
}
void Entity::draw(void){ //draws the entities
- if(type==NPCT)
+ if(type==NPCT){
if(gender == MALE)
glColor3ub(0,0,100);
else if(gender == FEMALE)
glColor3ub(255,105,180);
- else if(type==STRUCTURET)
+ }else if(type==STRUCTURET){
glColor3ub(100,0,100);
+ }
glRectf(loc.x,loc.y,loc.x+width,loc.y+height);
}