From 95d2e9bd42aaa73edfc4a4740478ef849edf5723 Mon Sep 17 00:00:00 2001 From: KPhoenix Date: Sat, 16 Sep 2023 16:22:54 -0400 Subject: [PATCH] Update automap.cpp --- Source/automap.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/automap.cpp b/Source/automap.cpp index c68dae71b..a3e5fd103 100644 --- a/Source/automap.cpp +++ b/Source/automap.cpp @@ -483,10 +483,10 @@ void DrawLavaRiver(const Surface &out, Point center, uint8_t color, bool hasBrid if (!(hasBridge && IsAnyOf(Direction::NorthEast, TDir1, TDir2))) out.SetPixel(center + AmOffset(AmWidthOffset::QuarterTileRight, AmHeightOffset::QuarterTileUp), color); } - if constexpr (IsAnyOf(Direction::NorthWest, Direction::NorthEast, TDir1, TDir2)) { + if constexpr (IsAnyOf(Direction::NorthWest, TDir1, TDir2) || IsAnyOf(Direction::NorthEast, TDir1, TDir2)) { out.SetPixel(center + AmOffset(AmWidthOffset::None, AmHeightOffset::None), color); } - if constexpr (IsAnyOf(Direction::SouthWest, Direction::NorthWest, TDir1, TDir2)) { + if constexpr (IsAnyOf(Direction::SouthWest, TDir1, TDir2) || IsAnyOf(Direction::NorthWest, TDir1, TDir2)) { out.SetPixel(center + AmOffset(AmWidthOffset::QuarterTileLeft, AmHeightOffset::QuarterTileDown), color); } if constexpr (IsAnyOf(Direction::SouthWest, TDir1, TDir2)) { @@ -498,10 +498,10 @@ void DrawLavaRiver(const Surface &out, Point center, uint8_t color, bool hasBrid if (!(hasBridge && IsAnyOf(Direction::NorthEast, TDir1, TDir2))) out.SetPixel(center + AmOffset(AmWidthOffset::HalfTileRight, AmHeightOffset::None), color); } - if constexpr (IsAnyOf(Direction::NorthEast, Direction::SouthEast, TDir1, TDir2)) { + if constexpr (IsAnyOf(Direction::NorthEast, TDir1, TDir2) || IsAnyOf(Direction::SouthEast, TDir1, TDir2)) { out.SetPixel(center + AmOffset(AmWidthOffset::QuarterTileRight, AmHeightOffset::QuarterTileDown), color); } - if constexpr (IsAnyOf(Direction::SouthWest, Direction::SouthEast, TDir1, TDir2)) { + if constexpr (IsAnyOf(Direction::SouthWest, TDir1, TDir2) || IsAnyOf(Direction::SouthEast, TDir1, TDir2)) { out.SetPixel(center + AmOffset(AmWidthOffset::None, AmHeightOffset::HalfTileDown), color); } if constexpr (IsAnyOf(Direction::SouthWest, TDir1, TDir2)) {