mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Fixed #1718
This commit is contained in:
parent
95e442898e
commit
01491f9f1e
Binary file not shown.
Before Width: | Height: | Size: 86 KiB |
Binary file not shown.
Before Width: | Height: | Size: 82 KiB |
@ -368,11 +368,15 @@ const SDL_Color & CMinimapInstance::getTileColor(const int3 & pos)
|
||||
return fogOfWar;
|
||||
|
||||
// if object at tile is owned - it will be colored as its owner
|
||||
for(const CGObjectInstance *obj : tile->blockingObjects)
|
||||
for (const CGObjectInstance *obj : tile->blockingObjects)
|
||||
{
|
||||
//heroes will be blitted later
|
||||
if (obj->ID == Obj::HERO)
|
||||
continue;
|
||||
switch (obj->ID)
|
||||
{
|
||||
case Obj::HERO:
|
||||
case Obj::PRISON:
|
||||
continue;
|
||||
}
|
||||
|
||||
PlayerColor player = obj->getOwner();
|
||||
if(player == PlayerColor::NEUTRAL)
|
||||
|
Loading…
Reference in New Issue
Block a user