mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-07 23:33:15 +02:00
1. Fixed #843
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user