mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
* Code convention updates * Default values for CMap types * Updated BinaryReader c-tor * Converted "bool" int types to bool in CMap classes * Removed map event operators in favor of member methods
This commit is contained in:
@ -370,9 +370,9 @@ const SDL_Color & CMinimapInstance::getTileColor(const int3 & pos)
|
||||
|
||||
// else - use terrain color (blocked version or normal)
|
||||
if (tile->blocked && (!tile->visitable))
|
||||
return parent->colors.find(tile->tertype)->second.second;
|
||||
return parent->colors.find(tile->terType)->second.second;
|
||||
else
|
||||
return parent->colors.find(tile->tertype)->second.first;
|
||||
return parent->colors.find(tile->terType)->second.first;
|
||||
}
|
||||
void CMinimapInstance::tileToPixels (const int3 &tile, int &x, int &y, int toX, int toY)
|
||||
{
|
||||
|
Reference in New Issue
Block a user