Skip to content

Commit

Permalink
Update Torch.cpp
Browse files Browse the repository at this point in the history
Corrections for incorrect sound names.
  • Loading branch information
Legion-zialot committed Aug 28, 2024
1 parent 34f7e49 commit 545cb95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/xrGame/Torch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ void CTorch::Load(LPCSTR section)

m_bNightVisionEnabled = !!pSettings->r_bool(section, "night_vision");

if (pSettings->line_exist(section, "snd_turn_on"))
m_sounds.LoadSound(section, "snd_turn_on", "sndTurnOn", false, SOUND_TYPE_ITEM_USING);
if (pSettings->line_exist(section, "snd_turn_off"))
m_sounds.LoadSound(section, "snd_turn_off", "sndTurnOff", false, SOUND_TYPE_ITEM_USING);
if (pSettings->line_exist(section, "snd_night_vision_on"))
m_sounds.LoadSound(section, "snd_night_vision_on", "sndTurnOn", false, SOUND_TYPE_ITEM_USING);
if (pSettings->line_exist(section, "snd_night_vision_off"))
m_sounds.LoadSound(section, "snd_night_vision_off", "sndTurnOff", false, SOUND_TYPE_ITEM_USING);
}

void CTorch::SwitchNightVision()
Expand Down

0 comments on commit 545cb95

Please sign in to comment.