diff --git a/apps/openmw/mwmp/Main.cpp b/apps/openmw/mwmp/Main.cpp index ad2a5f684..83a1e19ea 100644 --- a/apps/openmw/mwmp/Main.cpp +++ b/apps/openmw/mwmp/Main.cpp @@ -130,7 +130,7 @@ void Main::Frame(float dt) Players::Update(dt); get().UpdateWorld(dt); - get().getGUIConroller()->update(dt); + get().getGUIController()->update(dt); } @@ -152,7 +152,7 @@ void Main::UpdateWorld(float dt) const mNetworking->Connect(server, port); player.getClass().getCreatureStats(player).getSpells().add("fireball"); mLocalPlayer->updateBaseStats(true); - get().getGUIConroller()->setChatVisible(true); + get().getGUIController()->setChatVisible(true); } else mLocalPlayer->Update(); @@ -174,7 +174,7 @@ LocalPlayer *Main::getLocalPlayer() const } -GUIController *Main::getGUIConroller() const +GUIController *Main::getGUIController() const { return mGUIController; } @@ -182,6 +182,6 @@ GUIController *Main::getGUIConroller() const void Main::PressedKey(int key) { if (pMain == nullptr) return; - if (get().getGUIConroller()->pressedKey(key)) + if (get().getGUIController()->pressedKey(key)) return; // if any gui bind pressed } \ No newline at end of file diff --git a/apps/openmw/mwmp/Main.hpp b/apps/openmw/mwmp/Main.hpp index e1753e8dc..82c8c7b11 100644 --- a/apps/openmw/mwmp/Main.hpp +++ b/apps/openmw/mwmp/Main.hpp @@ -19,7 +19,7 @@ namespace mwmp Networking *getNetworking() const; LocalPlayer *getLocalPlayer() const; - GUIController *getGUIConroller() const; + GUIController *getGUIController() const; void UpdateWorld(float dt) const; diff --git a/apps/openmw/mwmp/Networking.cpp b/apps/openmw/mwmp/Networking.cpp index 35a853812..c50dbb332 100644 --- a/apps/openmw/mwmp/Networking.cpp +++ b/apps/openmw/mwmp/Networking.cpp @@ -559,11 +559,11 @@ void Networking::ReceiveMessage(RakNet::Packet *packet) getLocalPlayer()->guiMessageBox.label.c_str()); if (getLocalPlayer()->guiMessageBox.type == BasePlayer::GUIMessageBox::MessageBox) - Main::get().getGUIConroller()->ShowMessageBox(getLocalPlayer()->guiMessageBox); + Main::get().getGUIController()->ShowMessageBox(getLocalPlayer()->guiMessageBox); else if (getLocalPlayer()->guiMessageBox.type == BasePlayer::GUIMessageBox::CustomMessageBox) - Main::get().getGUIConroller()->ShowCustomMessageBox(getLocalPlayer()->guiMessageBox); + Main::get().getGUIController()->ShowCustomMessageBox(getLocalPlayer()->guiMessageBox); else if (getLocalPlayer()->guiMessageBox.type == BasePlayer::GUIMessageBox::InputDialog) - Main::get().getGUIConroller()->ShowInputBox(getLocalPlayer()->guiMessageBox); + Main::get().getGUIController()->ShowInputBox(getLocalPlayer()->guiMessageBox); } break; }