From c6844720b48eff442f9cee75a6a0897541e7df97 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Mon, 15 Sep 2008 06:14:20 +0000 Subject: [PATCH] don't render shadows for player in transparent spectator mode git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2616 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/rendermodel.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/src/rendermodel.cpp b/source/src/rendermodel.cpp index 62c5bf8c..c9ab3dd5 100644 --- a/source/src/rendermodel.cpp +++ b/source/src/rendermodel.cpp @@ -532,7 +532,11 @@ void renderclient(playerent *d, const char *mdlname, const char *vwepname, int t } // FIXME: while networked my state as spectator seems to stay CS_DEAD, not CS_SPECTATE // flowtron: I fixed this for following at least (see followplayer()) - if(player1->isspectating() && d->clientnum == player1->followplayercn && player1->spectatemode == SM_FOLLOW3RD_TRANSPARENT) anim |= ANIM_TRANSLUCENT; // see through followed player + if(player1->isspectating() && d->clientnum == player1->followplayercn && player1->spectatemode == SM_FOLLOW3RD_TRANSPARENT) + { + anim |= ANIM_TRANSLUCENT; // see through followed player + if(stenciling) return; + } rendermodel(mdlname, anim|ANIM_DYNALLOC, tex, 1.5f, o, d->yaw+90, d->pitch/4, speed, basetime, d, a); if(!stenciling && !reflecting && !refracting && isteam(player1->team, d->team)) renderaboveheadicon(d); }