mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Fixed cheats - sendMesssage will also pass current object.
Workaround-ish but should work. Branch should be fixed now.
This commit is contained in:
@ -1168,7 +1168,7 @@ void CInGameConsole::endEnteringText(bool printEnteredText)
|
||||
if(printEnteredText)
|
||||
{
|
||||
std::string txt = enteredText.substr(0, enteredText.size()-1);
|
||||
LOCPLINT->cb->sendMessage(txt);
|
||||
LOCPLINT->cb->sendMessage(txt, LOCPLINT->getSelection());
|
||||
previouslyEntered.push_back(txt);
|
||||
//print(txt);
|
||||
}
|
||||
|
Reference in New Issue
Block a user