Added missing parameters to function in new response code

This commit is contained in:
Blixibon 2022-04-26 08:31:41 -05:00
parent 08727cc322
commit 32bbb0c231
2 changed files with 16 additions and 0 deletions

View File

@ -851,7 +851,11 @@ bool CAI_Expresser::SpeakDispatchResponse( AIConcept_t concept, AI_Response *res
if ( !result->ShouldntUseScene() )
{
// This generates a fake CChoreoScene wrapping the sound.txt name
#ifdef MAPBASE
spoke = SpeakAutoGeneratedScene( response, delay, result, filter );
#else
spoke = SpeakAutoGeneratedScene( response, delay );
#endif
}
else
{
@ -1300,9 +1304,17 @@ bool CAI_Expresser::SpeakRawScene( const char *pszScene, float delay, AI_Respons
}
// This will create a fake .vcd/CChoreoScene to wrap the sound to be played
#ifdef MAPBASE
bool CAI_Expresser::SpeakAutoGeneratedScene( char const *soundname, float delay, AI_Response *response, IRecipientFilter *filter )
#else
bool CAI_Expresser::SpeakAutoGeneratedScene( char const *soundname, float delay )
#endif
{
#ifdef MAPBASE
float speakTime = GetOuter()->PlayAutoGeneratedSoundScene( soundname, delay, response, filter );
#else
float speakTime = GetOuter()->PlayAutoGeneratedSoundScene( soundname );
#endif
if ( speakTime > 0 )
{
SpeechMsg( GetOuter(), "SpeakAutoGeneratedScene( %s, %f) %f\n", soundname, delay, speakTime );

View File

@ -249,7 +249,11 @@ protected:
bool SpeakRawScene( const char *pszScene, float delay, AI_Response *response, IRecipientFilter *filter = NULL );
// This will create a fake .vcd/CChoreoScene to wrap the sound to be played
#ifdef MAPBASE
bool SpeakAutoGeneratedScene( char const *soundname, float delay, AI_Response *response = NULL, IRecipientFilter *filter = NULL );
#else
bool SpeakAutoGeneratedScene( char const *soundname, float delay );
#endif
void DumpHistories();