mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 09:18:38 +00:00
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:
parent
a4e7dfee97
commit
ea1d0d2a5c
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user