diff options
author | LaG1924 <lag1924@gmail.com> | 2021-07-05 15:36:28 +0200 |
---|---|---|
committer | LaG1924 <lag1924@gmail.com> | 2021-07-05 15:36:28 +0200 |
commit | 28cda3a34c85a35be2e1e4fa35b10fae5d0956d7 (patch) | |
tree | 4e2fa2a75f76778b1982a84c5a17d8d8744dd078 /src/Render.cpp | |
parent | Fixed shader error on MacOS (diff) | |
download | AltCraft-28cda3a34c85a35be2e1e4fa35b10fae5d0956d7.tar AltCraft-28cda3a34c85a35be2e1e4fa35b10fae5d0956d7.tar.gz AltCraft-28cda3a34c85a35be2e1e4fa35b10fae5d0956d7.tar.bz2 AltCraft-28cda3a34c85a35be2e1e4fa35b10fae5d0956d7.tar.lz AltCraft-28cda3a34c85a35be2e1e4fa35b10fae5d0956d7.tar.xz AltCraft-28cda3a34c85a35be2e1e4fa35b10fae5d0956d7.tar.zst AltCraft-28cda3a34c85a35be2e1e4fa35b10fae5d0956d7.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&) { |