Commit 4f67cb73 authored by nanahira's avatar nanahira

merge fixes

parent 27f3ec68
...@@ -176,8 +176,8 @@ bool ReplayMode::StartDuel() { ...@@ -176,8 +176,8 @@ bool ReplayMode::StartDuel() {
mainGame->dInfo.duel_rule = duel_rule; mainGame->dInfo.duel_rule = duel_rule;
set_player_info(pduel, 0, start_lp, start_hand, draw_count); set_player_info(pduel, 0, start_lp, start_hand, draw_count);
set_player_info(pduel, 1, start_lp, start_hand, draw_count); set_player_info(pduel, 1, start_lp, start_hand, draw_count);
preload_script(pduel, "./script/special.lua", 0); preload_script(pduel, "./script/special.lua");
preload_script(pduel, "./script/init.lua", 0); preload_script(pduel, "./script/init.lua");
mainGame->dInfo.lp[0] = start_lp; mainGame->dInfo.lp[0] = start_lp;
mainGame->dInfo.lp[1] = start_lp; mainGame->dInfo.lp[1] = start_lp;
mainGame->dInfo.start_lp = start_lp; mainGame->dInfo.start_lp = start_lp;
......
...@@ -442,8 +442,8 @@ void SingleDuel::TPResult(DuelPlayer* dp, unsigned char tp) { ...@@ -442,8 +442,8 @@ void SingleDuel::TPResult(DuelPlayer* dp, unsigned char tp) {
pduel = create_duel(duel_seed); pduel = create_duel(duel_seed);
set_player_info(pduel, 0, host_info.start_lp, host_info.start_hand, host_info.draw_count); set_player_info(pduel, 0, host_info.start_lp, host_info.start_hand, host_info.draw_count);
set_player_info(pduel, 1, host_info.start_lp, host_info.start_hand, host_info.draw_count); set_player_info(pduel, 1, host_info.start_lp, host_info.start_hand, host_info.draw_count);
preload_script(pduel, "./script/special.lua", 0); preload_script(pduel, "./script/special.lua");
preload_script(pduel, "./script/init.lua", 0); preload_script(pduel, "./script/init.lua");
unsigned int opt = (unsigned int)host_info.duel_rule << 16; unsigned int opt = (unsigned int)host_info.duel_rule << 16;
if(host_info.no_shuffle_deck) if(host_info.no_shuffle_deck)
opt |= DUEL_PSEUDO_SHUFFLE; opt |= DUEL_PSEUDO_SHUFFLE;
......
...@@ -44,8 +44,8 @@ int SingleMode::SinglePlayThread() { ...@@ -44,8 +44,8 @@ int SingleMode::SinglePlayThread() {
pduel = create_duel(rnd.rand()); pduel = create_duel(rnd.rand());
set_player_info(pduel, 0, start_lp, start_hand, draw_count); set_player_info(pduel, 0, start_lp, start_hand, draw_count);
set_player_info(pduel, 1, start_lp, start_hand, draw_count); set_player_info(pduel, 1, start_lp, start_hand, draw_count);
preload_script(pduel, "./script/special.lua", 0); preload_script(pduel, "./script/special.lua");
preload_script(pduel, "./script/init.lua", 0); preload_script(pduel, "./script/init.lua");
mainGame->dInfo.lp[0] = start_lp; mainGame->dInfo.lp[0] = start_lp;
mainGame->dInfo.lp[1] = start_lp; mainGame->dInfo.lp[1] = start_lp;
mainGame->dInfo.start_lp = start_lp; mainGame->dInfo.start_lp = start_lp;
......
...@@ -419,8 +419,8 @@ void TagDuel::TPResult(DuelPlayer* dp, unsigned char tp) { ...@@ -419,8 +419,8 @@ void TagDuel::TPResult(DuelPlayer* dp, unsigned char tp) {
pduel = create_duel(duel_seed); pduel = create_duel(duel_seed);
set_player_info(pduel, 0, host_info.start_lp, host_info.start_hand, host_info.draw_count); set_player_info(pduel, 0, host_info.start_lp, host_info.start_hand, host_info.draw_count);
set_player_info(pduel, 1, host_info.start_lp, host_info.start_hand, host_info.draw_count); set_player_info(pduel, 1, host_info.start_lp, host_info.start_hand, host_info.draw_count);
preload_script(pduel, "./script/special.lua", 0); preload_script(pduel, "./script/special.lua");
preload_script(pduel, "./script/init.lua", 0); preload_script(pduel, "./script/init.lua");
unsigned int opt = (unsigned int)host_info.duel_rule << 16; unsigned int opt = (unsigned int)host_info.duel_rule << 16;
if(host_info.no_shuffle_deck) if(host_info.no_shuffle_deck)
opt |= DUEL_PSEUDO_SHUFFLE; opt |= DUEL_PSEUDO_SHUFFLE;
......
Subproject commit 204eb0d8bdedd2ca0c0e473798a63735c8c8528d Subproject commit b99e7f553604ac1e3685300fbd81399670364451
Subproject commit 02cf811961c11c61f448e105c732a5369025f076 Subproject commit 7b08dcba45ae59dfa25030b06d5e1414ad0e44c0
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