Skip to content

Commit

Permalink
Fixed recursive issues with choice of map
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon committed Aug 17, 2024
1 parent 06b6ef7 commit eeb006a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions GuildWarsPartySearch.Bot/daily_quests.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ namespace DailyQuests {
if (nearest_outpost_id == 0) {
nearest_outpost_id = get_nearest_outpost_id(map_id);
}
if (nearest_outpost_id == 0) {
nearest_outpost_id = map_id;
}
}
};
DailyQuest zaishen_bounty_cycles[] = {
Expand Down
3 changes: 2 additions & 1 deletion GuildWarsPartySearch.Bot/gw-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@ static int travel_wait(int map_id, District district, uint16_t district_number)
&& (GetDistrictNumber() == district_number)) {
return 0;
}
Travel(map_id, district, district_number);
RedirectMap(map_id, district, district_number);
//Travel(map_id, district, district_number);
return wait_map_loading(map_id, 20000);
}

Expand Down
2 changes: 1 addition & 1 deletion GuildWarsPartySearch.Bot/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ static int main_bot(void* param)
continue;
}
auto old_wanted_map_id = wanted_map_id;
wanted_map_id = get_original_map_id(calculate_map_to_visit(bot_configuration.map_id, &wanted_district));
wanted_map_id = get_original_map_id(calculate_map_to_visit(wanted_map_id, &wanted_district));
if (old_wanted_map_id != wanted_map_id) {
LogInfo("Wanted map id changed from %d to %d", old_wanted_map_id, wanted_map_id);
}
Expand Down

0 comments on commit eeb006a

Please sign in to comment.