1
0
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:
DjWarmonger
2016-02-04 17:57:51 +01:00
parent e7b639898e
commit b98a83f743
2 changed files with 5 additions and 1 deletions

View File

@@ -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();
}