mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-05 09:54:09 +00:00
CCarCtrl stuff
This commit is contained in:
parent
792893df59
commit
cd30a76dc5
3 changed files with 169 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue