Skip to content

Commit

Permalink
tr1/phase_demo: disable wading during demos
Browse files Browse the repository at this point in the history
  • Loading branch information
lahm86 committed Oct 31, 2024
1 parent b56ccd9 commit 6c9b25a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tr1/game/phase/phase_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ static struct {
bool enable_enhanced_look;
bool enable_tr2_jumping;
bool enable_tr2_swimming;
bool enable_wading;
bool fix_bear_ai;
TARGET_LOCK_MODE target_mode;
} m_OldConfig;
Expand Down Expand Up @@ -158,11 +159,13 @@ static void M_PrepareConfig(void)
m_OldConfig.enable_enhanced_look = g_Config.enable_enhanced_look;
m_OldConfig.enable_tr2_jumping = g_Config.enable_tr2_jumping;
m_OldConfig.enable_tr2_swimming = g_Config.enable_tr2_swimming;
m_OldConfig.enable_wading = g_Config.enable_wading;
m_OldConfig.target_mode = g_Config.target_mode;
m_OldConfig.fix_bear_ai = g_Config.fix_bear_ai;
g_Config.enable_enhanced_look = false;
g_Config.enable_tr2_jumping = false;
g_Config.enable_tr2_swimming = false;
g_Config.enable_wading = false;
g_Config.target_mode = TLM_FULL;
g_Config.fix_bear_ai = false;
}
Expand All @@ -173,6 +176,7 @@ static void M_RestoreConfig(void)
g_Config.enable_enhanced_look = m_OldConfig.enable_enhanced_look;
g_Config.enable_tr2_jumping = m_OldConfig.enable_tr2_jumping;
g_Config.enable_tr2_swimming = m_OldConfig.enable_tr2_swimming;
g_Config.enable_wading = m_OldConfig.enable_wading;
g_Config.fix_bear_ai = m_OldConfig.fix_bear_ai;
}

Expand Down

0 comments on commit 6c9b25a

Please sign in to comment.