|
|
|
@ -131,6 +131,9 @@ void VirusAttack::DrawMinimap(){ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
DrawRect((game.GetWorldOffset()/worldPixelSize*64),viewingTilesPct*64/game.GetWorldScale()); |
|
|
|
|
for(auto&u:units){ |
|
|
|
|
FillRect(u->GetPos()/worldPixelSize*64,vf2d{2,2}*u->GetUnitSize()/24,u->IsFriendly()?GREEN:RED); |
|
|
|
|
} |
|
|
|
|
MINIMAP_OUTLINE.Decal()->Update(); |
|
|
|
|
SetDrawTarget(nullptr); |
|
|
|
|
DrawDecal(minimapTL,MINIMAP_OUTLINE.Decal()); |
|
|
|
|