use radarpos.x instead of VIRTW when showing partial console

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3591 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-11-17 21:18:23 +00:00
parent cf35264664
commit fc4183ef8b
3 changed files with 9 additions and 1 deletions
+7
View File
@@ -355,6 +355,13 @@ bool insideradar(const vec &centerpos, float radius, const vec &o)
bool isattacking(playerent *p) { return lastmillis-p->lastaction < 500; }
vec getradarpos()
{
float radarviewsize = VIRTH/6;
float overlaysize = radarviewsize*4.0f/3.25f;
return vec(VIRTW-10-VIRTH/28-overlaysize, 10+VIRTH/52, 0);
}
void drawradar(playerent *p, int w, int h)
{
vec center = showmap ? vec(ssize/2, ssize/2, 0) : p->o;