mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Compilation fixes.
This commit is contained in:
@@ -612,8 +612,8 @@ void CMinimap::showAll(SDL_Surface * to)
|
||||
if (adventureInt->mode == EAdvMapMode::WORLD_VIEW)
|
||||
{
|
||||
// adjusts radar so that it doesn't go out of map in world view mode (since there's no frame)
|
||||
radar.x = std::min(std::max(pos.x, radar.x), pos.x + pos.w - radar.w);
|
||||
radar.y = std::min(std::max(pos.y, radar.y), pos.y + pos.h - radar.h);
|
||||
radar.x = std::min<int>(std::max(pos.x, radar.x), pos.x + pos.w - radar.w);
|
||||
radar.y = std::min<int>(std::max(pos.y, radar.y), pos.y + pos.h - radar.h);
|
||||
|
||||
if (radar.x < pos.x && radar.y < pos.y)
|
||||
return; // whole map is visible at once, no point in redrawing border
|
||||
|
||||
Reference in New Issue
Block a user