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:
@ -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()
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user