Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 9148c55

Browse files
committed
Trim some unnecessary compatibility prop names from sound set read property
1 parent 415311c commit 9148c55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Entities/SoundSet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ namespace RTE {
4343
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4444

4545
int SoundSet::ReadProperty(std::string propName, Reader &reader) {
46-
if (propName == "SoundSelectionCycleMode" || propName == "CycleMode") {
46+
if (propName == "SoundSelectionCycleMode") {
4747
m_SoundSelectionCycleMode = ReadSoundSelectionCycleMode(reader);
4848
} else if (propName == "AddSound") {
4949
AddSoundData(ReadAndGetSoundData(reader));
50-
} else if (propName == "AddSoundSet" || propName == "AddSubSoundSet") {
50+
} else if (propName == "AddSoundSet") {
5151
SoundSet subSoundSet;
5252
reader >> subSoundSet;
5353
AddSubSoundSet(subSoundSet);

0 commit comments

Comments
 (0)