NANCY: Init sound listener vector in conditional dialogue

Added default sound vectors for all conditional dialogue
and goodbyes. This _probably_ doesn't affect much, but
is still good to have.
This commit is contained in:
Kaloyan Chehlarski 2023-10-01 21:46:51 +03:00
parent a4e7dfee97
commit ea1d0d2a5c

View File

@ -347,6 +347,7 @@ void ConversationSound::addConditionalDialogue() {
newResponse.sceneChange.sceneID = res.sceneID;
newResponse.sceneChange.continueSceneSound = kContinueSceneSound;
newResponse.sceneChange.listenerFrontVector.set(0, 0, 1);
// Check if the response is a repeat. This can happen when multiple condition combinations
// trigger the same response.
@ -429,12 +430,12 @@ void ConversationSound::addGoodbye() {
// The reply from the character is picked randomly
newResponse.sceneChange.sceneID = sceneChange.sceneIDs[g_nancy->_randomSource->getRandomNumber(sceneChange.sceneIDs.size() - 1)];
newResponse.sceneChange.continueSceneSound = kContinueSceneSound;
newResponse.sceneChange.listenerFrontVector.set(0, 0, 1);
// Set an event flag if applicable
// Assumes flagToSet is an event flag
NancySceneState.setEventFlag(sceneChange.flagToSet.label, sceneChange.flagToSet.flag);
newResponse.sceneChange.continueSceneSound = kContinueSceneSound;
}
void ConversationSound::ConversationFlag::read(Common::SeekableReadStream &stream) {