mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Probably found the root cause of terrain problems.
This commit is contained in:
parent
68a2bb78a5
commit
00a77e3c5f
@ -250,8 +250,8 @@ public:
|
||||
}
|
||||
|
||||
bool operator == (const Identifier & b) const { return num == b.num; }
|
||||
bool operator <= (const Identifier & b) const { return num >= b.num; }
|
||||
bool operator >= (const Identifier & b) const { return num <= b.num; }
|
||||
bool operator <= (const Identifier & b) const { return num <= b.num; }
|
||||
bool operator >= (const Identifier & b) const { return num >= b.num; }
|
||||
bool operator != (const Identifier & b) const { return num != b.num; }
|
||||
bool operator < (const Identifier & b) const { return num < b.num; }
|
||||
bool operator > (const Identifier & b) const { return num > b.num; }
|
||||
|
@ -134,7 +134,7 @@ void initTerrainType(Zone & zone, CMapGenerator & gen)
|
||||
|
||||
if (terrainType <= ETerrainId::NONE)
|
||||
{
|
||||
logGlobal->warn("Town %s has invalid terrain type: %s", zone.getTownType(), terrainType);
|
||||
logGlobal->warn("Town %s has invalid terrain type: %d", zone.getTownType(), terrainType);
|
||||
zone.setTerrainType(ETerrainId::DIRT);
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user