diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2021-07-06 15:00:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-06 15:00:50 +0200 |
commit | 4354b1b85b92e378ac0ea7c542edc033c6abdaff (patch) | |
tree | 4e2fa2a75f76778b1982a84c5a17d8d8744dd078 /src/Render.cpp | |
parent | Merge pull request #66 from LaG1924/ftr/more-rmlui (diff) | |
parent | Added disconnect messages (diff) | |
download | AltCraft-4354b1b85b92e378ac0ea7c542edc033c6abdaff.tar AltCraft-4354b1b85b92e378ac0ea7c542edc033c6abdaff.tar.gz AltCraft-4354b1b85b92e378ac0ea7c542edc033c6abdaff.tar.bz2 AltCraft-4354b1b85b92e378ac0ea7c542edc033c6abdaff.tar.lz AltCraft-4354b1b85b92e378ac0ea7c542edc033c6abdaff.tar.xz AltCraft-4354b1b85b92e378ac0ea7c542edc033c6abdaff.tar.zst AltCraft-4354b1b85b92e378ac0ea7c542edc033c6abdaff.zip |
Diffstat (limited to 'src/Render.cpp')
-rw-r--r-- | src/Render.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Render.cpp b/src/Render.cpp index 896a05f..b9b7ab0 100644 --- a/src/Render.cpp +++ b/src/Render.cpp @@ -465,6 +465,7 @@ void Render::InitEvents() { world.reset(); SetState(State::MainMenu); glClearColor(0.0f, 0.0f, 0.0f, 1.0f); + PluginSystem::CallOnDisconnected("Connection failed: " + eventData.get <std::string>()); }); listener.RegisterHandler("Disconnected", [this](const Event& eventData) { @@ -473,6 +474,7 @@ void Render::InitEvents() { world.reset(); SetState(State::MainMenu); glClearColor(0.0f, 0.0f, 0.0f, 1.0f); + PluginSystem::CallOnDisconnected("Disconnected: " + eventData.get<std::string>()); }); listener.RegisterHandler("Connecting", [this](const Event&) { |