summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r--src/resources/mapreader.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp
index 8283a4268..9b87d821c 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -526,19 +526,19 @@ inline static void setTile(Map *const map,
switch (gid - set->getFirstGid())
{
case Map::COLLISION_EMPTY:
- map->blockTile(x, y, BlockType::GROUND);
+ map->addBlockMask(x, y, BlockType::GROUND);
break;
case Map::COLLISION_WALL:
- map->blockTile(x, y, BlockType::WALL);
+ map->addBlockMask(x, y, BlockType::WALL);
break;
case Map::COLLISION_AIR:
- map->blockTile(x, y, BlockType::AIR);
+ map->addBlockMask(x, y, BlockType::AIR);
break;
case Map::COLLISION_WATER:
- map->blockTile(x, y, BlockType::WATER);
+ map->addBlockMask(x, y, BlockType::WATER);
break;
case Map::COLLISION_GROUNDTOP:
- map->blockTile(x, y, BlockType::GROUNDTOP);
+ map->addBlockMask(x, y, BlockType::GROUNDTOP);
break;
default:
break;
@@ -547,7 +547,7 @@ inline static void setTile(Map *const map,
else
{
if (gid - set->getFirstGid() != 0)
- map->blockTile(x, y, BlockType::WALL);
+ map->addBlockMask(x, y, BlockType::WALL);
}
}
break;