From bd509d2e9e1f587e4e49427ed68f9823018cb208 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sat, 20 Sep 2008 19:43:59 +0000 Subject: [PATCH] fixed flag display in edit mode git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2718 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/entities.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/src/entities.cpp b/source/src/entities.cpp index 3ee14839..e0b3ebc9 100644 --- a/source/src/entities.cpp +++ b/source/src/entities.cpp @@ -63,8 +63,13 @@ void renderentities() renderent(e); } } + else if(e.type==CTF_FLAG && editmode) + { + s_sprintfd(path)("pickups/flags/%s", team_string(e.attr2)); + rendermodel(path, ANIM_FLAG|ANIM_LOOP, 0, 0, vec(e.x, e.y, (float)S(e.x, e.y)->floor), (float)((e.attr1+7)-(e.attr1+7)%15), 0, 120.0f); + } } - if(m_flags || editmode) loopi(2) + if(m_flags) loopi(2) { flaginfo &f = flaginfos[i]; switch(f.state)