From 1c340568d2d373b40b04ad6bc163caeabaac4d0d Mon Sep 17 00:00:00 2001 From: David Cernat Date: Thu, 29 Mar 2018 06:04:20 +0300 Subject: [PATCH] [Client] Disallow resting if player has not finished chargen Previously, players pressing T rapidly before logging in had the Wait screen show up for them. --- apps/openmw/mwinput/inputmanagerimp.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apps/openmw/mwinput/inputmanagerimp.cpp b/apps/openmw/mwinput/inputmanagerimp.cpp index 5c203ab9b..4b6824cbb 100644 --- a/apps/openmw/mwinput/inputmanagerimp.cpp +++ b/apps/openmw/mwinput/inputmanagerimp.cpp @@ -1066,6 +1066,17 @@ namespace MWInput return; } + /* + Start of tes3mp addition + + Ignore attempts to rest if the player has not finished character generation yet + */ + if (!mwmp::Main::get().getLocalPlayer()->hasFinishedCharGen()) + return; + /* + End of tes3mp addition + */ + /* Start of tes3mp addition