mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Added string identifiers for terrain types.
This commit is contained in:
@@ -284,6 +284,10 @@ CHeroHandler::CHeroHandler()
|
||||
}
|
||||
loadObstacles();
|
||||
loadTerrains();
|
||||
for (int i = 0; i < GameConstants::TERRAIN_TYPES; ++i)
|
||||
{
|
||||
VLC->modh->identifiers.registerObject("core", "terrain", GameConstants::TERRAIN_NAMES[i], i);
|
||||
}
|
||||
loadBallistics();
|
||||
loadExperience();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user