mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Converted several enumerations into constants
This commit is contained in:
@@ -147,14 +147,14 @@ TerrainId MapReaderH3M::readTerrain()
|
||||
RoadId MapReaderH3M::readRoad()
|
||||
{
|
||||
RoadId result(readInt8());
|
||||
assert(result < Road::ORIGINAL_ROAD_COUNT);
|
||||
assert(result.getNum() < features.roadsCount);
|
||||
return result;
|
||||
}
|
||||
|
||||
RiverId MapReaderH3M::readRiver()
|
||||
{
|
||||
RiverId result(readInt8());
|
||||
assert(result < River::ORIGINAL_RIVER_COUNT);
|
||||
assert(result.getNum() < features.riversCount);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user