diff --git a/source/src/rendermodel.cpp b/source/src/rendermodel.cpp index c6af38d6..6f7e531b 100644 --- a/source/src/rendermodel.cpp +++ b/source/src/rendermodel.cpp @@ -516,8 +516,6 @@ void preload_mapmodels() } } -VAR(dbghbox, 0, 0, 1); //FIXME remove on release - inline void renderhboxpart(playerent *d, vec top, vec bottom, vec up) { if(d->state==CS_ALIVE && d->head.x >= 0) @@ -569,24 +567,6 @@ inline void renderhboxpart(playerent *d, vec top, vec bottom, vec up) glEnd(); } -void renderhbox(playerent *d) -{ - glDisable(GL_TEXTURE_2D); - glColor3f(1, 1, 1); - - float y = d->yaw*RAD, p = (d->pitch/4+90)*RAD, c = cosf(p); - vec bottom(d->o), up(sinf(y)*c, -cosf(y)*c, sinf(p)), top(up), mid(up); - bottom.z -= d->eyeheight; - float h = d->eyeheight /*+ d->aboveeye*/; // shoulder limit - mid.mul(h*0.5).add(bottom); - top.mul(h).add(bottom); - - renderhboxpart(d,top,mid,up); - renderhboxpart(d,mid,bottom,up); - - glEnable(GL_TEXTURE_2D); -} - void renderclient(playerent *d, const char *mdlname, const char *vwepname, int tex) { int varseed = (int)(size_t)d; @@ -653,7 +633,6 @@ void renderclient(playerent *d, const char *mdlname, const char *vwepname, int t if(!stenciling && !reflecting && !refracting) { if(isteam(player1->team, d->team)) renderaboveheadicon(d); - if(dbghbox && watchingdemo) renderhbox(d); //Available only for demo playback } }