mirror of
https://github.com/halpz/re3.git
synced 2025-07-12 21:48:12 +00:00
CCarCtrl stuff
This commit is contained in:
@ -3493,12 +3493,15 @@ int8 CRunningScript::ProcessCommandsFrom300To399(int32 command)
|
||||
default:
|
||||
break;
|
||||
}
|
||||
#ifdef FIX_BUGS
|
||||
/* BUG: if audio is not initialized, this object will not be freed. */
|
||||
if (!DMAudio.IsAudioInitialised())
|
||||
return 0;
|
||||
#endif
|
||||
cAudioScriptObject* obj = new cAudioScriptObject();
|
||||
obj->Posn = *(CVector*)&ScriptParams[0];
|
||||
obj->AudioId = ScriptParams[3];
|
||||
obj->AudioEntity = AEHANDLE_NONE;
|
||||
/* BUG: if audio is not initialized, this object will not be freed. */
|
||||
/* Issue needs to be addressed in CreateOneShotScriptObject. */
|
||||
DMAudio.CreateOneShotScriptObject(obj);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user