mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
* squashed: [Client-sided scripting] Don't register functions that don't work. (#5091)
This commit is contained in:
parent
2efae3ffd7
commit
cb3a61f8db
10 changed files with 66 additions and 6 deletions
|
@ -1584,7 +1584,7 @@ void Client::typeChatMessage(const std::wstring &message)
|
|||
// Show locally
|
||||
if (message[0] == L'/')
|
||||
{
|
||||
m_chat_queue.push((std::wstring)L"issued command: " + message);
|
||||
pushToChatQueue((std::wstring)L"issued command: " + message);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1593,7 +1593,7 @@ void Client::typeChatMessage(const std::wstring &message)
|
|||
LocalPlayer *player = m_env.getLocalPlayer();
|
||||
assert(player != NULL);
|
||||
std::wstring name = narrow_to_wide(player->getName());
|
||||
m_chat_queue.push((std::wstring)L"<" + name + L"> " + message);
|
||||
pushToChatQueue((std::wstring)L"<" + name + L"> " + message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1867,7 +1867,7 @@ void Client::makeScreenshot(IrrlichtDevice *device)
|
|||
} else {
|
||||
sstr << "Failed to save screenshot '" << filename << "'";
|
||||
}
|
||||
m_chat_queue.push(narrow_to_wide(sstr.str()));
|
||||
pushToChatQueue(narrow_to_wide(sstr.str()));
|
||||
infostream << sstr.str() << std::endl;
|
||||
image->drop();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue