summaryrefslogtreecommitdiff
path: root/src/resources/map
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-04-02 04:11:12 +0300
committerAndrei Karas <akaras@inbox.ru>2018-04-02 04:11:12 +0300
commit5400a3120742494281f6cce43545657432a08f25 (patch)
treebe843b338f34ef2d6d474121031a7b57f82f677b /src/resources/map
parentecae89e342fc07daa816fe7de133968a51745040 (diff)
downloadplus-5400a3120742494281f6cce43545657432a08f25.tar.gz
plus-5400a3120742494281f6cce43545657432a08f25.tar.bz2
plus-5400a3120742494281f6cce43545657432a08f25.tar.xz
plus-5400a3120742494281f6cce43545657432a08f25.zip
Add some missing brackets in macroses.
Diffstat (limited to 'src/resources/map')
-rw-r--r--src/resources/map/map.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp
index b37e2af9b..810791222 100644
--- a/src/resources/map/map.cpp
+++ b/src/resources/map/map.cpp
@@ -539,12 +539,12 @@ void Map::draw(Graphics *restrict const graphics,
}
#define fillCollision(collision, color) \
- if (x < endX && mMetaTiles[tilePtr].blockmask & collision)\
+ if (x < endX && mMetaTiles[tilePtr].blockmask & (collision))\
{\
width = mapTileSize;\
for (int x2 = tilePtr + 1; x < endX; x2 ++)\
{\
- if (!(mMetaTiles[x2].blockmask & collision))\
+ if (!(mMetaTiles[x2].blockmask & (collision)))\
break;\
width += mapTileSize;\
x ++;\