From fa11122f878fdd7f41b98816ce91ced281df1cdb Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Tue, 8 Nov 2022 22:45:30 +0300 Subject: [PATCH] Make spatial script finders public --- src/scripts.cc | 6 ++---- src/scripts.h | 2 ++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/scripts.cc b/src/scripts.cc index ddb3ac5..882bfa0 100644 --- a/src/scripts.cc +++ b/src/scripts.cc @@ -80,8 +80,6 @@ static int scriptRead(Script* scr, File* stream); static int scriptListExtentRead(ScriptListExtent* a1, File* stream); static int scriptGetNewId(int scriptType); static int scriptsRemoveLocalVars(Script* script); -static Script* scriptGetFirstSpatialScript(int a1); -static Script* scriptGetNextSpatialScript(); static int scriptsGetMessageList(int a1, MessageList** out_message_list); // 0x50D6B8 @@ -2409,7 +2407,7 @@ int _scr_remove_all_force() } // 0x4A6524 -static Script* scriptGetFirstSpatialScript(int elevation) +Script* scriptGetFirstSpatialScript(int elevation) { gScriptsEnumerationElevation = elevation; gScriptsEnumerationScriptIndex = 0; @@ -2428,7 +2426,7 @@ static Script* scriptGetFirstSpatialScript(int elevation) } // 0x4A6564 -static Script* scriptGetNextSpatialScript() +Script* scriptGetNextSpatialScript() { ScriptListExtent* scriptListExtent = gScriptsEnumerationScriptListExtent; int scriptIndex = gScriptsEnumerationScriptIndex; diff --git a/src/scripts.h b/src/scripts.h index eeb8033..8efdd1d 100644 --- a/src/scripts.h +++ b/src/scripts.h @@ -207,6 +207,8 @@ int scriptAdd(int* sidPtr, int scriptType); int scriptRemove(int index); int _scr_remove_all(); int _scr_remove_all_force(); +Script* scriptGetFirstSpatialScript(int elevation); +Script* scriptGetNextSpatialScript(); void _scr_spatials_enable(); void _scr_spatials_disable(); bool scriptsExecSpatialProc(Object* obj, int tile, int elevation);