Made classic flashlight single player only

This commit is contained in:
Robert Beckebans 2024-06-28 13:45:07 +02:00
parent 53925f9f31
commit 504e7f5591
2 changed files with 2 additions and 2 deletions

View file

@ -5961,7 +5961,7 @@ void idPlayer::UpdateWeapon()
// RB
bool idPlayer::UsesClassicFlashlight()
{
return ( ng_classicFlashlight.GetBool() || fileSystem->IsDoom2004() );
return ( ( ng_classicFlashlight.GetBool() || fileSystem->IsDoom2004() ) && !common->IsMultiplayer() );
}
/*

View file

@ -120,7 +120,7 @@ void idMenuScreen_Shell_GameOptions::Initialize( idMenuHandler* data )
control = new( TAG_SWF ) idMenuWidget_ControlButton();
control->SetOptionType( OPTION_SLIDER_TOGGLE );
control->SetLabel( "Classic Flashlight" );
control->SetLabel( "Classic Flashlight (SP)" );
control->SetDataSource( &systemData, idMenuDataSource_GameSettings::GAME_FIELD_CLASSIC_FLASHLIGHT );
control->SetupEvents( DEFAULT_REPEAT_TIME, options->GetChildren().Num() );
control->AddEventAction( WIDGET_EVENT_PRESS ).Set( WIDGET_ACTION_PRESS_FOCUSED, options->GetChildren().Num() );