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

- fix for text on kingdom overview (#1172 + some other similar cases)

- removed unused code from text handler
This commit is contained in:
Ivan Savenko
2013-01-12 19:28:38 +00:00
parent 055e922e4d
commit 2f83b211ca
3 changed files with 5 additions and 41 deletions

View File

@ -324,27 +324,6 @@ void CGeneralTextHandler::load()
}
}
std::string CGeneralTextHandler::getTitle(const std::string & text)
{
std::string ret;
int i=0;
while ((text[i++]!='{'));
while ((text[i]!='}') && (i<text.length()))
ret+=text[i++];
return ret;
}
std::string CGeneralTextHandler::getDescr(const std::string & text)
{
std::string ret;
int i=0;
while ((text[i++]!='}'));
i+=2;
while ((text[i]!='"') && (i<text.length()))
ret+=text[i++];
return ret;
}
CGeneralTextHandler::CGeneralTextHandler()
{