diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-30 13:45:28 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-30 16:30:25 +0100 |
| commit | 90b214c0a4b3c91ad021c9923f1b8a69ccbe88e8 (patch) | |
| tree | ba018d88faee760820c7525862101c1bb66284bb /src/tile.cpp | |
| parent | ccf843360374c2f91d4d9420e4d2ccd73a03e703 (diff) | |
src: add missing scenery check in tile_ref::operator==
Diffstat (limited to 'src/tile.cpp')
| -rw-r--r-- | src/tile.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tile.cpp b/src/tile.cpp index 5f003258..56ac5746 100644 --- a/src/tile.cpp +++ b/src/tile.cpp @@ -80,10 +80,11 @@ bool operator==(const tile_ref& a, const tile_ref& b) noexcept if (a._chunk == b._chunk && a.i == b.i) return true; else - return a.ground() == b.ground() && - a.wall_north() == b.wall_north() && - a.wall_west() == b.wall_west() && - a.pass_mode() == b.pass_mode(); + return a.ground() == b.ground() && + a.wall_north() == b.wall_north() && + a.wall_west() == b.wall_west() && + a.scenery() == b.scenery() && + a.pass_mode() == b.pass_mode(); } } // namespace floormat |
