This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix cAudioScriptObject
- Loading branch information
There are no files selected for viewing
|
|
@@ -4,6 +4,16 @@ |
|
|
#include "Pools.h" |
|
|
#include "DMAudio.h" |
|
|
|
|
|
cAudioScriptObject::cAudioScriptObject() |
|
|
{ |
|
|
Reset(); |
|
|
}; |
|
|
|
|
|
cAudioScriptObject::~cAudioScriptObject() |
|
|
{ |
|
|
Reset(); |
|
|
}; |
|
|
|
|
|
void |
|
|
cAudioScriptObject::Reset() |
|
|
{ |
|
|
|
|
|
@@ -7,6 +7,9 @@ class cAudioScriptObject |
|
|
CVector Posn; |
|
|
int32 AudioEntity; |
|
|
|
|
|
cAudioScriptObject(); |
|
|
~cAudioScriptObject(); |
|
|
|
|
|
void Reset(); /// ok |
|
|
|
|
|
static void* operator new(size_t); |
|
|
|
|
|
@@ -203,7 +203,7 @@ cDMAudio::ReportCrime(eCrimeType crime, const CVector &pos) |
|
|
int32 |
|
|
cDMAudio::CreateLoopingScriptObject(cAudioScriptObject *scriptObject) |
|
|
{ |
|
|
int32 audioEntity = AudioManager.CreateEntity(AUDIOTYPE_SCRIPTOBJECT, (CPhysical *)scriptObject); |
|
|
int32 audioEntity = AudioManager.CreateEntity(AUDIOTYPE_SCRIPTOBJECT, scriptObject); |
|
|
|
|
|
if ( AEHANDLE_IS_OK(audioEntity) ) |
|
|
AudioManager.SetEntityStatus(audioEntity, true); |
|
|
@@ -220,7 +220,7 @@ cDMAudio::DestroyLoopingScriptObject(int32 audioEntity) |
|
|
void |
|
|
cDMAudio::CreateOneShotScriptObject(cAudioScriptObject *scriptObject) |
|
|
{ |
|
|
int32 audioEntity = AudioManager.CreateEntity(AUDIOTYPE_SCRIPTOBJECT, (CPhysical *)scriptObject); |
|
|
int32 audioEntity = AudioManager.CreateEntity(AUDIOTYPE_SCRIPTOBJECT, scriptObject); |
|
|
|
|
|
if ( AEHANDLE_IS_OK(audioEntity) ) |
|
|
{ |
|
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.