From 66cdf0ff203c7d066c638dd4d080219791b43f95 Mon Sep 17 00:00:00 2001 From: ac_stef Date: Sun, 9 Aug 2009 18:07:43 +0000 Subject: [PATCH] fix flag visibility git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4618 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/entities.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/entities.cpp b/source/src/entities.cpp index 543fdc0f..98b7d60b 100644 --- a/source/src/entities.cpp +++ b/source/src/entities.cpp @@ -122,7 +122,7 @@ void renderentities() if(m_flags) loopi(2) { flaginfo &f = flaginfos[i]; - if(f.flagent->spawned) switch(f.state) + switch(f.state) { case CTFF_STOLEN: if(f.actor && f.actor != player1) @@ -139,7 +139,7 @@ void renderentities() if(OUTBORD(f.pos.x, f.pos.y)) break; entity &e = *f.flagent; s_sprintfd(path)("pickups/flags/%s%s", m_ktf ? "" : team_basestring(i), m_htf ? "_htf" : m_ktf ? "ktf" : ""); - rendermodel(path, ANIM_FLAG|ANIM_LOOP, 0, 0, vec(f.pos.x, f.pos.y, f.state==CTFF_INBASE ? (float)S(int(f.pos.x), int(f.pos.y))->floor : f.pos.z), (float)((e.attr1+7)-(e.attr1+7)%15), 0, 120.0f); + if(f.flagent->spawned) rendermodel(path, ANIM_FLAG|ANIM_LOOP, 0, 0, vec(f.pos.x, f.pos.y, f.state==CTFF_INBASE ? (float)S(int(f.pos.x), int(f.pos.y))->floor : f.pos.z), (float)((e.attr1+7)-(e.attr1+7)%15), 0, 120.0f); break; } case CTFF_IDLE: