- if (get_opponent_xyda(&opp_x, &opp_y, &opp_d, &opp_a)) {
- if (xxxdebug != 2) {
- DEBUG(E_USER_STRAT, "XXX no opp");
- DEBUG(E_USER_STRAT, "opponent d=%d, a=%d "
- "x=%d y=%d (speed_d=%d)",
- opp_d, opp_a, opp_x, opp_y, mainboard.speed_d);
- xxxdebug = 2;
+ if (get_opponent_xyda(&opp_x, &opp_y, &opp_d, &opp_a) < 0) {
+ if (strat_obstacle_debug != 2) {
+ DEBUG(E_USER_STRAT, "no opponent found");
+ strat_obstacle_debug = 2;