Skip to content

Commit

Permalink
fix tile id check in realmz_dasm
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzziqersoftware committed Mar 28, 2023
1 parent 5c96b77 commit 636c3d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RealmzScenarioData.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2194,7 +2194,7 @@ Image RealmzScenarioData::generate_land_map(
size_t yp = (y - y0) * 32 + (n.top != -1 ? 9 : 0);

// Draw the tile itself
if ((data < 0) || (data >= 200)) { // Masked tile
if ((data < 0) || (data > 200)) { // Masked tile
if (used_negative_tiles) {
used_negative_tiles->emplace(data);
}
Expand Down Expand Up @@ -2234,7 +2234,7 @@ Image RealmzScenarioData::generate_land_map(
0);
}

} else if (data < 200) { // Standard tile
} else if (data <= 200) { // Standard tile
if (used_positive_tiles_for_land_type) {
used_positive_tiles_for_land_type->emplace(data);
}
Expand Down

0 comments on commit 636c3d4

Please sign in to comment.