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:
@@ -355,6 +355,13 @@ bool insideradar(const vec ¢erpos, 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;
|
||||
|
||||
Reference in New Issue
Block a user