diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2015-10-28 11:55:21 -0400 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2015-10-28 11:55:21 -0400 |
commit | 193af27884fc910b4ffa7212ec772894c03e36ee (patch) | |
tree | ce3a10772b3af81815261a11959da6e715eaa96f /src/inventory.cpp | |
parent | a3e3f43a51e4a8137dff779f38b358b5b8608e4e (diff) |
Locked camera to world bounds and added basic mountain backdrop
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r-- | src/inventory.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp index 1adcbab..2eb0087 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -86,10 +86,10 @@ int Inventory::takeItem(ITEM_ID id,unsigned char count){ void Inventory::draw(void){ unsigned int i=0; float y=SCREEN_HEIGHT/2,xoff; - ui::putText(player->loc.x-SCREEN_WIDTH/2,y,"Inventory:"); + ui::putText(offset.x-SCREEN_WIDTH/2,y,"Inventory:"); while(item[i].count){ y-=HLINE*12; - xoff=ui::putText(player->loc.x-SCREEN_WIDTH/2,y,"%d x ",item[i].count); + xoff=ui::putText(offset.x-SCREEN_WIDTH/2,y,"%d x ",item[i].count); glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D,ITEM_TEX[item[i].id-1]); if(sel==i)glColor3ub(255,0,255); @@ -101,7 +101,7 @@ void Inventory::draw(void){ glTexCoord2i(0,0);glVertex2i(xoff ,y+HLINE*10); glEnd(); y-=ui::fontSize*1.15; - ui::putText(player->loc.x-SCREEN_WIDTH/2,y,"%s",itemName[(unsigned)item[i].id]); + ui::putText(offset.x-SCREEN_WIDTH/2,y,"%s",itemName[(unsigned)item[i].id]); glDisable(GL_TEXTURE_2D); i++; } |