From bba66a0ccb7281cd6c717fe9784a04a4fcf72700 Mon Sep 17 00:00:00 2001 From: cflip Date: Sun, 27 Feb 2022 10:55:11 -0700 Subject: Add ClangFormat configuration --- src/level.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/level.cpp') diff --git a/src/level.cpp b/src/level.cpp index 4df1d5a..b42608b 100644 --- a/src/level.cpp +++ b/src/level.cpp @@ -18,7 +18,7 @@ uint8_t Level::get(int x, int y) void Level::set(int x, int y, uint8_t tile) { - if (inBounds(x, y)) + if (inBounds(x, y)) m_tiles[x + y * m_width] = tile; } @@ -36,17 +36,13 @@ RailDirection ChooseDirection(Level& level, int x, int y) } if ((e || w) && !(n || s)) { return EastWest; - } - else if (s && e) { + } else if (s && e) { return SouthEast; - } - else if (s && w) { + } else if (s && w) { return SouthWest; - } - else if (n && w) { + } else if (n && w) { return NorthWest; - } - else if (n && e) { + } else if (n && e) { return NorthEast; } -- cgit v1.2.3