From d4b3771a44a7acab53ccada63097ef444cacbe1e Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sat, 25 Oct 2008 21:41:51 +0000 Subject: [PATCH] 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 --- source/src/renderhud.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/renderhud.cpp b/source/src/renderhud.cpp index 7044e991..6f33cba1 100644 --- a/source/src/renderhud.cpp +++ b/source/src/renderhud.cpp @@ -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;