From 85f67fa4b91d05c0e02997a616caf743a4bd714e Mon Sep 17 00:00:00 2001 From: drumsetmonkey Date: Fri, 20 May 2016 07:33:54 -0400 Subject: Basic particle stack overflow patch --- src/inventory.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/inventory.cpp') diff --git a/src/inventory.cpp b/src/inventory.cpp index 9727dc0..a7c19da 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -665,13 +665,13 @@ void itemDraw(Player *p, Item *d) { itemTex[10] = 1.0; } - GLfloat itemCoords[] = {itemLoc.x, itemLoc.y, 1.0, - itemLoc.x+d->dim.x, itemLoc.y, 1.0, - itemLoc.x+d->dim.x, itemLoc.y+d->dim.y, 1.0, + GLfloat itemCoords[] = {itemLoc.x, itemLoc.y, p->z, + itemLoc.x+d->dim.x, itemLoc.y, p->z, + itemLoc.x+d->dim.x, itemLoc.y+d->dim.y, p->z, - itemLoc.x+d->dim.x, itemLoc.y+d->dim.y, 1.0, - itemLoc.x, itemLoc.y+d->dim.y, 1.0, - itemLoc.x, itemLoc.y, 1.0}; + itemLoc.x+d->dim.x, itemLoc.y+d->dim.y, p->z, + itemLoc.x, itemLoc.y+d->dim.y, p->z, + itemLoc.x, itemLoc.y, p->z}; glBindTexture(GL_TEXTURE_2D,d->tex->image[0]); -- cgit v1.2.3