mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-13 01:20:34 +02:00
Integrated CClientState into GameEngine class
This commit is contained in:
@ -396,7 +396,7 @@ void CChatBox::keyPressed(EShortcut key)
|
||||
|
||||
void CChatBox::addNewMessage(const std::string & text)
|
||||
{
|
||||
CCS->soundh->playSound(AudioPath::builtin("CHAT"));
|
||||
ENGINE->sound().playSound(AudioPath::builtin("CHAT"));
|
||||
chatHistory->setText(chatHistory->label->getText() + text + "\n");
|
||||
if(chatHistory->slider)
|
||||
chatHistory->slider->scrollToMax();
|
||||
|
Reference in New Issue
Block a user