From 365d7619b9b9f1b882da4f89f49068e8736fea60 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Tue, 14 Oct 2008 09:48:31 +0000 Subject: [PATCH] use 1st attribute for height of items git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3005 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/entities.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/entities.cpp b/source/src/entities.cpp index 0d24c17a..ebe16613 100644 --- a/source/src/entities.cpp +++ b/source/src/entities.cpp @@ -24,7 +24,7 @@ void renderent(entity &e) const char *mdlname = entmdlnames[e.type-I_CLIPS]; float z = (float)(1+sinf(lastmillis/100.0f+e.x+e.y)/20), yaw = lastmillis/10.0f; - rendermodel(mdlname, ANIM_MAPMODEL|ANIM_LOOP|ANIM_DYNALLOC, 0, 0, vec(e.x, e.y, z+S(e.x, e.y)->floor), yaw, 0); + rendermodel(mdlname, ANIM_MAPMODEL|ANIM_LOOP|ANIM_DYNALLOC, 0, 0, vec(e.x, e.y, z+S(e.x, e.y)->floor+e.attr1), yaw, 0); } void renderentities()