1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 22:15:32 +00:00

Fix typo in method name "getGUIConroller"

This commit is contained in:
David Cernat 2016-08-24 04:48:35 +03:00
parent f93e382b8b
commit d830937f4e
3 changed files with 8 additions and 8 deletions

View file

@ -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
}

View file

@ -19,7 +19,7 @@ namespace mwmp
Networking *getNetworking() const;
LocalPlayer *getLocalPlayer() const;
GUIController *getGUIConroller() const;
GUIController *getGUIController() const;
void UpdateWorld(float dt) const;

View file

@ -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;
}