aboutsummaryrefslogtreecommitdiff
path: root/sword2/save_rest.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2003-10-21 08:54:50 +0000
committerTorbjörn Andersson2003-10-21 08:54:50 +0000
commit3be2f0f1e08fc191e9f092380845919778e77a58 (patch)
treea3f45971b122f2598e0ea4713aa204c7cf18ba6d /sword2/save_rest.cpp
parented0c30fcbf7f0fdd2633451c894ea7bd4980076c (diff)
downloadscummvm-rg350-3be2f0f1e08fc191e9f092380845919778e77a58.tar.gz
scummvm-rg350-3be2f0f1e08fc191e9f092380845919778e77a58.tar.bz2
scummvm-rg350-3be2f0f1e08fc191e9f092380845919778e77a58.zip
Moved some more stuff into the Logic class.
svn-id: r10923
Diffstat (limited to 'sword2/save_rest.cpp')
-rw-r--r--sword2/save_rest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/sword2/save_rest.cpp b/sword2/save_rest.cpp
index e062ed0c93..d5e8dca505 100644
--- a/sword2/save_rest.cpp
+++ b/sword2/save_rest.cpp
@@ -520,7 +520,7 @@ void GetPlayerStructures(void) {
Con_fatal_error("incorrect CUR_PLAYER_ID=%d", CUR_PLAYER_ID);
raw_script_ad = (char *) head;
- RunScript(raw_script_ad, raw_script_ad, &null_pc);
+ g_logic.runScript(raw_script_ad, raw_script_ad, &null_pc);
res_man.close(CUR_PLAYER_ID);
}
@@ -543,12 +543,12 @@ void PutPlayerStructures(void) {
// script no. 8 - 'george_savedata_return' calls fnGetPlayerSaveData
null_pc = 8;
- RunScript(raw_script_ad, raw_script_ad, &null_pc);
+ g_logic.runScript(raw_script_ad, raw_script_ad, &null_pc);
// script no. 14 - 'set_up_nico_anim_tables'
null_pc = 14;
- RunScript(raw_script_ad, raw_script_ad, &null_pc);
+ g_logic.runScript(raw_script_ad, raw_script_ad, &null_pc);
// which megaset was the player at the time of saving?
@@ -570,7 +570,7 @@ void PutPlayerStructures(void) {
break;
}
- RunScript(raw_script_ad, raw_script_ad, &null_pc);
+ g_logic.runScript(raw_script_ad, raw_script_ad, &null_pc);
res_man.close(CUR_PLAYER_ID);
}