Fix issue with bad Center detection for RS

This commit is contained in:
Lorenzooone 2024-05-30 01:12:39 +02:00
parent 37bf016e8e
commit cff5d3a96c
2 changed files with 4 additions and 2 deletions

View File

@ -41,7 +41,7 @@ static u16 applied_ball;
static u8 egg_met_location;
static u8 first_set_egg_met_location;
const struct version_t version = { .main_version = 1, .sub_version = 1, .revision_version = 12, .revision_letter = CONSOLE_LETTER};
const struct version_t version = { .main_version = 1, .sub_version = 1, .revision_version = 13, .revision_letter = CONSOLE_LETTER};
const u8* egg_valid_met_locations[NUMBER_OF_GAMES+FIRST_VERSION_ID] = {valid_egg_locations_rs_bin, valid_egg_locations_rs_bin, valid_egg_locations_rs_bin, valid_egg_locations_e_bin, valid_egg_locations_frlg_bin, valid_egg_locations_frlg_bin};
void set_default_settings() {

View File

@ -527,8 +527,10 @@ void read_party(int slot, struct game_data_t* game_data, struct game_data_priv_t
game_data_priv->game_is_suspended = 0;
}
if(section_id == SECTION_LOCATION_ID)
if(section_id == SECTION_LOCATION_ID) {
game_data_priv->curr_map = read_short_save((slot * SAVE_SLOT_SIZE) + (i * SECTION_SIZE) + LOCATION_POS);
game_data_priv->curr_map = ((game_data_priv->curr_map & 0xFF) << 8) | ((game_data_priv->curr_map & 0xFF00) >> 8);
}
if(section_id == SECTION_BASE_DEX_ID) {
game_data_priv->nat_dex_magic = read_byte_save((slot * SAVE_SLOT_SIZE) + (i * SECTION_SIZE) + nat_dex_magic_pos[game_id]);