From 2650b2118c2a14938e06020764a0eb2f5a820cbe Mon Sep 17 00:00:00 2001 From: driAn Date: Sat, 8 Nov 2008 18:29:35 +0000 Subject: [PATCH] sucky OUTBORD() fixes git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3450 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/entities.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/src/entities.cpp b/source/src/entities.cpp index aa794ae9..3cccc7ee 100644 --- a/source/src/entities.cpp +++ b/source/src/entities.cpp @@ -107,6 +107,7 @@ void renderentities() switch(f.state) { case CTFF_STOLEN: + if(OUTBORD(f.pos.x, f.pos.y)) break; if(f.actor && f.actor != player1) { s_sprintfd(path)("pickups/flags/small_%s%s", m_ktf ? "" : team_string(i), m_htf ? "_htf" : m_ktf ? "ktf" : ""); @@ -117,6 +118,7 @@ void renderentities() if(!numflagspawn[i]) break; case CTFF_DROPPED: { + if(OUTBORD(f.pos.x, f.pos.y)) break; entity &e = *f.flagent; s_sprintfd(path)("pickups/flags/%s%s", m_ktf ? "" : team_string(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);