put back good code

This commit is contained in:
Karma Riuk 2025-02-03 15:36:11 +01:00
parent 83af5f0b97
commit b70ca5302a

View File

@ -45,8 +45,8 @@ legal_moves(int8_t p, const Board& b, const Coords xy, bool looking_for_check) {
break;
}
// if (!looking_for_check)
// return keep_only_blocking(ret, b);
if (!looking_for_check)
return keep_only_blocking(ret, b);
return ret;
}