Commit 2ca88956 authored by DailyShana's avatar DailyShana Committed by nanahira

remove load extra scripts from ocgcore (#175)

parent 3043ca85
...@@ -744,14 +744,10 @@ int32 interpreter::load_card_script(uint32 code) { ...@@ -744,14 +744,10 @@ int32 interpreter::load_card_script(uint32 code) {
lua_pushstring(current_state, "__index"); lua_pushstring(current_state, "__index");
lua_pushvalue(current_state, -2); lua_pushvalue(current_state, -2);
lua_rawset(current_state, -3); lua_rawset(current_state, -3);
//load extra scripts sprintf(script_name, "./script/c%d.lua", code);
sprintf(script_name, "./expansions/script/c%d.lua", code); if(!load_script(script_name)) {
if (!load_script(script_name)) { return OPERATION_FAIL;
sprintf(script_name, "./script/c%d.lua", code); }
if (!load_script(script_name)) {
return OPERATION_FAIL;
}
}
} }
return OPERATION_SUCCESS; return OPERATION_SUCCESS;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment