diff --git a/client.cs b/client.cs index ad80a7b..bb19895 100644 --- a/client.cs +++ b/client.cs @@ -471,13 +471,24 @@ function RPGClient_CamInputAllowed() return 1; } -function RPGClient_BootPlay() +function RPGClient_BootUI() { if (!isObject(ServerConnection)) { return; } $RPGClient::Server = 1; + RPGClient_BindKeys(); + RPGClient_Hud_Ensure(); +} + +function RPGClient_BootPlay() +{ + if (!isObject(ServerConnection)) + { + return; + } + RPGClient_BootUI(); $RPGClient::Active = 1; $RPGClient::CamTickOn = 1; $RPGClient::PlayBooted = 1; @@ -895,7 +906,7 @@ function clientCmdRPG_Welcome(%serverProto, %accepted) { $RPGClient::HelloPending = 0; $RPGClient::Server = 1; - schedule(0, 0, RPGClient_BootPlay); + schedule(0, 0, RPGClient_BootUI); schedule(2500, 0, RPGClient_TopDownWatch); } else if (!%accepted) @@ -998,7 +1009,7 @@ function clientCmdRPG_TopDown(%on, %yaw, %dist) function clientCmdRPG_Hud(%hp, %maxHp, %silver, %load, %cap, %skillId, %skillValue, %blocking, %tHp, %tMax) { - RPGClient_BootPlay(); + RPGClient_BootUI(); RPGClient_Hud_Update(%hp, %maxHp, %silver, %load, %cap, %skillId, %skillValue, %tHp, %tMax); }