Exported S_IsActorPlayingSomething and S_GetMSLength to ZScript.

Added missing vm.h include, moved A_IsPlayingSound to p_actionfunctions.cpp.

- make A_IsPlayingSound ui only
This commit is contained in:
Mari the Deer 2018-01-07 00:42:37 +01:00 committed by Christoph Oelckers
commit a01ca4c3a1
4 changed files with 17 additions and 0 deletions

View file

@ -53,6 +53,7 @@
#include "serializer.h"
#include "v_text.h"
#include "g_levellocals.h"
#include "vm.h"
// MACROS ------------------------------------------------------------------
@ -491,6 +492,12 @@ unsigned int S_GetMSLength(FSoundID sound)
else return 0;
}
DEFINE_ACTION_FUNCTION(DObject,S_GetLength)
{
PARAM_PROLOGUE;
PARAM_SOUND(sound_id);
ACTION_RETURN_FLOAT(S_GetMSLength(sound_id)/1000.0);
}
//==========================================================================
//