1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-17 01:32:21 +02:00

Info map for terrain type. Fixes bug 5.

This commit is contained in:
Frank Zago
2009-10-22 02:09:14 +00:00
parent 5a9752fb8c
commit e412619ce7
3 changed files with 23 additions and 3 deletions

View File

@ -285,7 +285,16 @@ void CGeneralTextHandler::load()
{
loadToIt(temp,buf,it,3);
restypes.push_back(temp);
}
}
tlog5 << "\t\tReading TERRNAME \n";
buf = bitmaph->getTextFile("TERRNAME.TXT");
it=0;
while (it<buf.length()-1)
{
loadToIt(temp,buf,it,3);
terrainNames.push_back(temp);
}
tlog5 << "\t\tReading RANDSIGN \n";
buf = bitmaph->getTextFile("RANDSIGN.TXT");
@ -439,4 +448,4 @@ std::string CGeneralTextHandler::getDescr(std::string text)
CGeneralTextHandler::CGeneralTextHandler()
{
}
}