diff --git a/source/main/gui/panels/GUI_GameChatBox.cpp b/source/main/gui/panels/GUI_GameChatBox.cpp index 1530744499..5d1d72d358 100644 --- a/source/main/gui/panels/GUI_GameChatBox.cpp +++ b/source/main/gui/panels/GUI_GameChatBox.cpp @@ -26,10 +26,12 @@ #include "Console.h" #include "GUIManager.h" #include "Language.h" +#include "InputEngine.h" #include // strtok, strncmp #include #include +#include using namespace RoR; using namespace GUI; @@ -75,7 +77,11 @@ void GameChatBox::Draw() if (initialized == true) { - App::GetConsole()->putMessage(Console::CONSOLE_MSGTYPE_INFO, Console::CONSOLE_SYSTEM_NOTICE, _LC("ChatBox", "Welcome to Rigs of Rods!")); + std::string shortcut = regex_replace(App::GetInputEngine()->getEventCommand(EV_COMMON_GET_NEW_VEHICLE).c_str(), std::regex("EXPL\\+"), ""); + Str<100> msg; + msg << "Press " << shortcut << " to spawn a vehicle"; + + App::GetConsole()->putMessage(Console::CONSOLE_MSGTYPE_INFO, Console::CONSOLE_SYSTEM_NOTICE, _LC("ChatBox", msg), "lightbulb.png"); initialized = false; } diff --git a/source/main/main.cpp b/source/main/main.cpp index ccb7e4e368..3812d7e324 100644 --- a/source/main/main.cpp +++ b/source/main/main.cpp @@ -822,7 +822,6 @@ int main(int argc, char *argv[]) } else if (App::sim_state->getEnum() == SimState::RUNNING) { - if (App::GetCameraManager()->GetCurrentBehavior() != CameraManager::CAMERA_BEHAVIOR_FREE) { App::GetGameContext()->UpdateSimInputEvents(dt);