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:
parent
d5d393aaf2
commit
a01ca4c3a1
4 changed files with 17 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue