From a71361364787dfbbe344f815c7066e9504a237f1 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Mon, 13 Oct 2008 01:28:22 +0000 Subject: [PATCH] debugging cleanup git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2993 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/rendermodel.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/source/src/rendermodel.cpp b/source/src/rendermodel.cpp index 458e942f..0b59ccf8 100644 --- a/source/src/rendermodel.cpp +++ b/source/src/rendermodel.cpp @@ -512,13 +512,13 @@ void renderhbox(playerent *d) bottom.z -= d->eyeheight; top.mul(d->eyeheight + d->aboveeye).add(bottom); - if(d->head.x >= 0) + if(d->state==CS_ALIVE && d->head.x >= 0) { glBegin(GL_LINE_LOOP); - loopi(10) + loopi(8) { vec pos(camright); - pos.rotate(2*M_PI*i/10.0f, camdir).mul(HEADSIZE).add(d->head); + pos.rotate(2*M_PI*i/8.0f, camdir).mul(HEADSIZE).add(d->head); glVertex3fv(pos.v); } glEnd(); @@ -534,26 +534,26 @@ void renderhbox(playerent *d) spoke.normalize().mul(d->radius); glBegin(GL_LINE_LOOP); - loopi(10) + loopi(8) { vec pos(spoke); - pos.rotate(2*M_PI*i/10.0f, up).add(top); + pos.rotate(2*M_PI*i/8.0f, up).add(top); glVertex3fv(pos.v); } glEnd(); glBegin(GL_LINE_LOOP); - loopi(10) + loopi(8) { vec pos(spoke); - pos.rotate(2*M_PI*i/10.0f, up).add(bottom); + pos.rotate(2*M_PI*i/8.0f, up).add(bottom); glVertex3fv(pos.v); } glEnd(); glBegin(GL_LINES); - loopi(10) + loopi(8) { vec pos(spoke); - pos.rotate(2*M_PI*i/10.0f, up).add(bottom); + pos.rotate(2*M_PI*i/8.0f, up).add(bottom); glVertex3fv(pos.v); pos.sub(bottom).add(top); glVertex3fv(pos.v);