Commit 5da97bcd authored by Momobako's avatar Momobako

updc

parent 679567da
......@@ -328,7 +328,9 @@ int32 field::select_chain(uint16 step, uint8 playerid, uint8 spe_count, uint8 fo
}
return FALSE;
} else {
if((returns.ivalue[0] < 0 && forced) || returns.ivalue[0] >= (int32)core.select_chains.size()) {
if(!forced && returns.ivalue[0] == -1)
return TRUE;
if(returns.ivalue[0] < 0 || returns.ivalue[0] >= (int32)core.select_chains.size()) {
pduel->write_buffer8(MSG_RETRY);
return FALSE;
}
......@@ -684,7 +686,7 @@ int32 field::sort_card(int16 step, uint8 playerid, uint8 is_chain) {
if(step == 0) {
returns.bvalue[0] = 0;
if((playerid == 1) && (core.duel_options & DUEL_SIMPLE_AI)) {
returns.ivalue[0] = -1;
returns.bvalue[0] = -1;
return TRUE;
}
if(core.select_cards.empty())
......
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