Skip to content

Commit d582e77

Browse files
authored
[GEN][ZH] Fix inaudible UnableToSetRallyPoint audio event when misplacing a Rally Point (#1173)
1 parent d3a6f17 commit d582e77

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Generals/Code/GameEngine/Source/GameLogic/System/GameLogicDispatch.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ static void doSetRallyPoint( Object *obj, const Coord3D& pos )
166166
// play the no can do sound
167167
static AudioEventRTS rallyNotSet("UnableToSetRallyPoint");
168168
rallyNotSet.setPosition(&pos);
169+
rallyNotSet.setPlayerIndex(obj->getControllingPlayer()->getPlayerIndex());
169170
TheAudio->addAudioEvent(&rallyNotSet);
170171

171172
} // end if

GeneralsMD/Code/GameEngine/Source/GameLogic/System/GameLogicDispatch.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ static void doSetRallyPoint( Object *obj, const Coord3D& pos )
167167
// play the no can do sound
168168
static AudioEventRTS rallyNotSet("UnableToSetRallyPoint");
169169
rallyNotSet.setPosition(&pos);
170+
rallyNotSet.setPlayerIndex(obj->getControllingPlayer()->getPlayerIndex());
170171
TheAudio->addAudioEvent(&rallyNotSet);
171172

172173
} // end if

0 commit comments

Comments
 (0)