rotate flags in mini-radar by camera yaw

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3269 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-10-25 21:41:51 +00:00
parent bea076a6ce
commit d4b3771a44
+1 -1
View File
@@ -407,7 +407,7 @@ void drawradar(playerent *p, int w, int h)
flaginfo &f = flaginfos[i];
entity *e = f.flagent;
if(!e) continue;
float yaw = showmap ? 0 : p->yaw;
float yaw = showmap ? 0 : camera1->yaw;
if(insideradar(centerpos, res/2, vec(e->x, e->y, centerpos.z)))
drawradarent(e->x*coordtrans, e->y*coordtrans, yaw, m_ktf ? 2 : f.team, 3, iconsize, false); // draw bases
if(m_ktf && f.state == CTFF_IDLE) continue;