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

Commit 5ed4b32

Browse files
committed
Bit of name changes AddSubSoundSet -> AddSoundSet
1 parent 4f57980 commit 5ed4b32

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Entities/SoundContainer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ namespace RTE {
6161
if (propName == "AddSound") {
6262
m_TopLevelSoundSet.AddSoundData(SoundSet::ReadAndGetSoundData(reader));
6363
} else if (propName == "AddSoundSet") {
64-
SoundSet subSoundSet;
65-
reader >> subSoundSet;
66-
m_TopLevelSoundSet.AddSubSoundSet(subSoundSet);
64+
SoundSet soundSetToAdd;
65+
reader >> soundSetToAdd;
66+
m_TopLevelSoundSet.AddSoundSet(soundSetToAdd);
6767
} else if (propName == "SoundSelectionCycleMode" || propName == "CycleMode") {
6868
m_TopLevelSoundSet.SetSoundSelectionCycleMode(SoundSet::ReadSoundSelectionCycleMode(reader));
6969
} else if (propName == "OverlapMode") {

Entities/SoundSet.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ namespace RTE {
4848
} else if (propName == "AddSound") {
4949
AddSoundData(ReadAndGetSoundData(reader));
5050
} else if (propName == "AddSoundSet") {
51-
SoundSet subSoundSet;
52-
reader >> subSoundSet;
53-
AddSubSoundSet(subSoundSet);
51+
SoundSet soundSetToAdd;
52+
reader >> soundSetToAdd;
53+
AddSoundSet(soundSetToAdd);
5454
} else {
5555
return Serializable::ReadProperty(propName, reader);
5656
}

Entities/SoundSet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ namespace RTE {
130130
/// Adds a copy of the passed in SoundSet as a sub SoundSet of this SoundSet. Ownership IS transferred!
131131
/// </summary>
132132
/// <param name="soundSetToAdd">A reference to the SoundSet to be copied in as a sub SoundSet of this SoundSet. Ownership IS transferred!</param>
133-
void AddSubSoundSet(const SoundSet &soundSetToAdd) { m_SubSoundSets.push_back(soundSetToAdd); }
133+
void AddSoundSet(const SoundSet &soundSetToAdd) { m_SubSoundSets.push_back(soundSetToAdd); }
134134
#pragma endregion
135135

136136
#pragma region Getters and Setters

Managers/LuaMan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ int LuaMan::Create() {
615615
.def("SelectNextSounds", &SoundSet::SelectNextSounds)
616616
.def("AddSound", (void (SoundSet:: *)(std::string const &soundFilePath)) &SoundSet::AddSound)
617617
.def("AddSound", (void (SoundSet:: *)(std::string const &soundFilePath, const Vector &offset, float minimumAudibleDistance, float attenuationStartDistance)) &SoundSet::AddSound)
618-
.def("AddSubSoundSet", &SoundSet::AddSubSoundSet),
618+
.def("AddSoundSet", &SoundSet::AddSoundSet),
619619

620620
ABSTRACTLUABINDING(SceneObject, Entity)
621621
.property("Pos", &SceneObject::GetPos, &SceneObject::SetPos)

0 commit comments

Comments
 (0)