Codechange: Use enum class for water-related enums. (#14804)
This commit is contained in:
@@ -65,7 +65,7 @@ struct CanalResolverObject : public ResolverObject {
|
||||
case 0x80: {
|
||||
int z = GetTileZ(this->tile);
|
||||
/* Return consistent height within locks */
|
||||
if (IsTileType(this->tile, MP_WATER) && IsLock(this->tile) && GetLockPart(this->tile) == LOCK_PART_UPPER) z--;
|
||||
if (IsTileType(this->tile, MP_WATER) && IsLock(this->tile) && GetLockPart(this->tile) == LockPart::Upper) z--;
|
||||
return z;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user