Reset prompt buffer position to zero once VP had finished speaking so that another play would replay the buffer

This commit is contained in:
Silvano Seva 2022-08-27 17:27:04 +02:00
parent 99408a5455
commit 1383e3d61e
1 changed files with 4 additions and 1 deletions

View File

@ -482,7 +482,10 @@ void vp_tick()
// see if we've finished. // see if we've finished.
if(vpCurrentSequence.pos == vpCurrentSequence.length) if(vpCurrentSequence.pos == vpCurrentSequence.length)
voicePromptActive = false; {
voicePromptActive = false;
vpCurrentSequence.pos = 0;
}
} }
bool vp_isPlaying() bool vp_isPlaying()