aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-09-30 19:46:44 -0400
committerClyne Sullivan <tullivan99@gmail.com>2015-09-30 19:46:44 -0400
commit67b62dde3dfd4fddba82940894f5b3416eee4c06 (patch)
tree8ba3646df76230750900ca2bc0c31f907bde6a87 /src/world.cpp
parent7fbac4fc005baed6bc94d342cf7df2c8ad7a359a (diff)
more fonts, entity name displays
Diffstat (limited to 'src/world.cpp')
-rw-r--r--src/world.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/world.cpp b/src/world.cpp
index 1d56643..2a0e471 100644
--- a/src/world.cpp
+++ b/src/world.cpp
@@ -117,7 +117,10 @@ LOOP2: // Draw each world
for(i=0;i<entity.size()+1;i++){
if(entity[i]->inWorld==this){
entity[i]->draw();
- ui::putText(entity[i]->loc.x,entity[i]->loc.y,"%d",i);
+ if(entity[i]->near){
+ ui::setFontSize(14);
+ ui::putText(entity[i]->loc.x,entity[i]->loc.y-ui::fontSize-HLINE/2,"%s",entity[i]->name);
+ }
}
}
}