Commit eed4383b authored by DailyShana's avatar DailyShana

tweak

parent 76a7d55f
...@@ -4185,22 +4185,14 @@ int32 field::move_to_field(uint16 step, card* target, uint32 enable, uint32 ret, ...@@ -4185,22 +4185,14 @@ int32 field::move_to_field(uint16 step, card* target, uint32 enable, uint32 ret,
} }
if(ct <= 0) if(ct <= 0)
return TRUE; return TRUE;
bool zone_selected = false; if((zone & zone - 1) == 0) {
uint32 seq = 0; for(uint8 seq = 0; seq < 8; seq++) {
for(uint32 i = 0; i < 8; i++) { if((1 << seq) & zone) {
if(((1 << i) & zone) > 0) { returns.bvalue[2] = seq;
if(zone_selected) { return FALSE;
zone_selected = false;
break;
} }
zone_selected = true;
seq = i;
} }
} }
if(zone_selected) {
returns.bvalue[2] = seq;
return FALSE;
}
if(move_player == playerid) { if(move_player == playerid) {
if(location == LOCATION_SZONE) if(location == LOCATION_SZONE)
flag = ((flag & 0xff) << 8) | 0xffff00ff; flag = ((flag & 0xff) << 8) | 0xffff00ff;
......
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