Anchor radar at bottom of map.
This commit is contained in:
parent
42c6c43cd8
commit
a729bfe7ee
|
@ -65,6 +65,11 @@ void initRadar(void)
|
|||
viewRect.x = limit(viewRect.x, limits.x, limits.w);
|
||||
viewRect.y = limit(viewRect.y, limits.y, limits.h);
|
||||
|
||||
if (viewRect.y > limits.h)
|
||||
{
|
||||
viewRect.y -= (viewRect.y - limits.h);
|
||||
}
|
||||
|
||||
blinkTimer = 0;
|
||||
|
||||
atlasTexture = getTexture("gfx/atlas/atlas.png");
|
||||
|
|
Loading…
Reference in New Issue