Skip to content

Commit

Permalink
The "Sleep" hint will no longer appear on the load screen
Browse files Browse the repository at this point in the history
  • Loading branch information
qweasdd136963 authored and Xottab-DUTY committed Jun 3, 2018
1 parent 33ae25a commit 3e334e4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/xrEngine/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ class ENGINE_API CLoadScreenRenderer : public pureRender
void start(bool b_user_input);
void stop();
virtual void OnRender();
bool IsActive() const { return b_registered; }

bool b_registered;
bool b_need_user_input;
Expand Down
3 changes: 3 additions & 0 deletions src/xrGame/ActorInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ void CActor::IR_OnKeyboardPress(int cmd)
if (m_input_external_handler && !m_input_external_handler->authorized(cmd))
return;

if (load_screen_renderer.IsActive())
return;

switch (cmd)
{
case kWPN_FIRE:
Expand Down
4 changes: 4 additions & 0 deletions src/xrGame/ui/UIGameTutorial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ bool CUISequenceItem::Stop(bool bForce)
CUISequencer::CUISequencer() { m_flags.zero(); }
void CUISequencer::Start(LPCSTR tutor_name)
{
// Skip any tutorial except "game_loaded", since we need to show "st_press_any_key" hint
if (load_screen_renderer.IsActive() && xr_strcmp(tutor_name, "game_loaded") != 0)
return;

VERIFY(m_sequencer_items.size() == 0);
Device.seqFrame.Add(this, REG_PRIORITY_LOW - 10000);

Expand Down

0 comments on commit 3e334e4

Please sign in to comment.