diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-11-26 00:51:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-11-27 20:33:15 +0300 |
commit | 0c20db8d108c4123fcc3ecb343759e68567a4d4e (patch) | |
tree | f577edeae7b4866d68c084a1eaa229e98c80ea8f /src/resources/map | |
parent | 2be4fc5b4eee97938657c9c8be73c4b91c8b9826 (diff) | |
download | plus-0c20db8d108c4123fcc3ecb343759e68567a4d4e.tar.gz plus-0c20db8d108c4123fcc3ecb343759e68567a4d4e.tar.bz2 plus-0c20db8d108c4123fcc3ecb343759e68567a4d4e.tar.xz plus-0c20db8d108c4123fcc3ecb343759e68567a4d4e.zip |
Remove extra ; from different code.
Diffstat (limited to 'src/resources/map')
-rw-r--r-- | src/resources/map/map.cpp | 22 | ||||
-rw-r--r-- | src/resources/map/tileanimation.cpp | 2 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp index bcec1a4a3..3cc6ecafe 100644 --- a/src/resources/map/map.cpp +++ b/src/resources/map/map.cpp @@ -191,9 +191,9 @@ Map::~Map() delete_all(mForegrounds); delete_all(mBackgrounds); delete_all(mTileAnimations); - delete2(mSpecialLayer); - delete2(mTempLayer); - delete2(mObjects); + delete2(mSpecialLayer) + delete2(mTempLayer) + delete2(mObjects) delete_all(mMapPortals); #ifdef USE_OPENGL if (mAtlas != nullptr) @@ -202,7 +202,7 @@ Map::~Map() mAtlas = nullptr; } #endif // USE_OPENGL - delete2(mHeights); + delete2(mHeights) delete [] mMetaTiles; } @@ -601,12 +601,12 @@ void Map::drawCollision(Graphics *restrict const graphics, int width = 0; const int x0 = x; - fillCollision(BlockMask::WALL, COLLISION_HIGHLIGHT); - fillCollision(BlockMask::AIR, AIR_COLLISION_HIGHLIGHT); - fillCollision(BlockMask::WATER, WATER_COLLISION_HIGHLIGHT); - fillCollision(BlockMask::GROUNDTOP, GROUNDTOP_COLLISION_HIGHLIGHT); - fillCollision(BlockMask::PLAYERWALL, COLLISION_HIGHLIGHT); - fillCollision(BlockMask::MONSTERWALL, MONSTER_COLLISION_HIGHLIGHT); + fillCollision(BlockMask::WALL, COLLISION_HIGHLIGHT) + fillCollision(BlockMask::AIR, AIR_COLLISION_HIGHLIGHT) + fillCollision(BlockMask::WATER, WATER_COLLISION_HIGHLIGHT) + fillCollision(BlockMask::GROUNDTOP, GROUNDTOP_COLLISION_HIGHLIGHT) + fillCollision(BlockMask::PLAYERWALL, COLLISION_HIGHLIGHT) + fillCollision(BlockMask::MONSTERWALL, MONSTER_COLLISION_HIGHLIGHT) } } } @@ -1241,7 +1241,7 @@ void Map::saveExtraLayer() const restrict2 if (!mapFile.is_open()) { reportAlways("Error opening file for writing: %s", - mapFileName.c_str()); + mapFileName.c_str()) return; } diff --git a/src/resources/map/tileanimation.cpp b/src/resources/map/tileanimation.cpp index f31fed7ae..6f6ee9e3e 100644 --- a/src/resources/map/tileanimation.cpp +++ b/src/resources/map/tileanimation.cpp @@ -40,7 +40,7 @@ TileAnimation::TileAnimation(Animation *const ani) : TileAnimation::~TileAnimation() { - delete2(mAnimation); + delete2(mAnimation) } bool TileAnimation::update(const int ticks) |