diff --git a/src/scripting/vmthunks_actors.cpp b/src/scripting/vmthunks_actors.cpp index 31c4ab7b4..bf058d479 100644 --- a/src/scripting/vmthunks_actors.cpp +++ b/src/scripting/vmthunks_actors.cpp @@ -179,8 +179,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(AActor, A_PlaySound, A_PlaySound) PARAM_FLOAT(attenuation); PARAM_BOOL(local); PARAM_FLOAT(pitch); - PARAM_FLOAT(startTime); - A_PlaySound(self, soundid, channel, volume, looping, attenuation, local, pitch, startTime); + A_PlaySound(self, soundid, channel, volume, looping, attenuation, local, pitch, 0.0f); return 0; } @@ -193,7 +192,8 @@ DEFINE_ACTION_FUNCTION_NATIVE(AActor, A_StartSound, A_StartSound) PARAM_FLOAT(volume); PARAM_FLOAT(attenuation); PARAM_FLOAT(pitch); - A_StartSound(self, soundid, channel, flags, volume, attenuation, pitch, 0.0f); + PARAM_FLOAT(startTime); + A_StartSound(self, soundid, channel, flags, volume, attenuation, pitch, startTime); return 0; }