aboutsummaryrefslogtreecommitdiffstats
path: root/src/inventory.cpp
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2015-12-07 07:38:33 -0500
committerdrumsetmonkey <abelleisle@roadrunner.com>2015-12-07 07:38:33 -0500
commitb4ba0a553d93115adbd4e4b23736987de1d5dcba (patch)
treed59cd298a62e9fc25d2f3d4d562732886cfa8882 /src/inventory.cpp
parent58ed33ed617396b4b4780d5b419392ae65d20e08 (diff)
Fixed something
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r--src/inventory.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp
index 7d3bc6d..f789334 100644
--- a/src/inventory.cpp
+++ b/src/inventory.cpp
@@ -171,7 +171,8 @@ void Inventory::draw(void){
glTexCoord2i(1,1);glVertex2i(r.end.x+(itemWide/2), r.end.y-(itemWide/2)*((float)item[inv[a].id].height/(float)item[inv[a].id].width));
glTexCoord2i(1,0);glVertex2i(r.end.x+(itemWide/2), r.end.y+(itemWide/2)*((float)item[inv[a].id].height/(float)item[inv[a].id].width));
glTexCoord2i(0,0);glVertex2i(r.end.x-(itemWide/2), r.end.y+(itemWide/2)*((float)item[inv[a].id].height/(float)item[inv[a].id].width));
- } glEnd();
+ }
+ glEnd();
glDisable(GL_TEXTURE_2D);
ui::putText(r.end.x-(itemWide/2),r.end.y-(itemWide*.9),"%s",item[inv[a].id].name);
ui::putText(r.end.x-(itemWide/2)+(itemWide*.85),r.end.y-(itemWide/2),"%d",inv[a].count);