Skip to content

Commit

Permalink
Fixed issues with redirectmap
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon committed Aug 21, 2024
1 parent 7f1144b commit 86939ae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GuildWarsPartySearch.Bot/Dependencies/Headquarter
2 changes: 1 addition & 1 deletion GuildWarsPartySearch.Bot/gw-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ static int travel_wait(int map_id, District district, uint16_t district_number)
}
else {
// RedirectMap if we're NOT already in the same map; server will drop connection otherwise
RedirectMap(map_id, district, district_number);
RedirectMap(map_id);
}

//Travel(map_id, district, district_number);
Expand Down
2 changes: 2 additions & 0 deletions GuildWarsPartySearch.Bot/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ static void collect_instance_info() {
district_number = GetDistrictNumber();
GetCharacterName(character_name, ARRAY_SIZE(character_name));
GetAccountUuid(account_uuid, ARRAY_SIZE(account_uuid));
LogInfo("collect_instance_info: map %d, district %d, district_number %d, district_region %d", map_id, district, district_number, GetDistrictRegion());
}

static void on_map_entered(Event* event, void* params) {
Expand Down Expand Up @@ -654,6 +655,7 @@ static void ensure_correct_outpost() {
retries = 50; // District full, more retries
}
}
collect_instance_info();
if (!in_correct_outpost()) {
exit_with_status("Couldn't travel to outpost", 1);
}
Expand Down

0 comments on commit 86939ae

Please sign in to comment.