1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-07 23:33:15 +02:00
2. Refactoring for battle console hoover texts
3. Clone should work only for creatures of certain tier. However, ALL creature immunities stopped working in the meantime. Looking for an earlier bug.
This commit is contained in:
DjWarmonger
2012-02-20 08:19:03 +00:00
parent e4dc00abac
commit 444b59d478
5 changed files with 96 additions and 75 deletions

View File

@@ -72,6 +72,13 @@ bool CBattleConsole::addText(const std::string & text)
return true;
}
void CBattleConsole::alterText(const std::string &text)
{
char buf[500];
sprintf(buf, text.c_str());
alterTxt = buf;
}
void CBattleConsole::eraseText(ui32 pos)
{
if(pos < texts.size())