Skip to content

Commit 0788b33

Browse files
committed
Merge branch 'master' into 'next
1 parent ff8e269 commit 0788b33

File tree

4 files changed

+2
-41
lines changed

4 files changed

+2
-41
lines changed

README.md

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<<<<<<< HEAD
21
NOTE: Development of this project is indefinitely suspended in favour of [tmxlite](https://github.com/fallahn/tmxlite)
32
which supports generic rendering across C++ frameworks such as SFML and SDL2, requires no external linkage and
43
has broader platform support, including mobile devices.
@@ -35,46 +34,9 @@ it freely, subject to the following restrictions:
3534

3635
*********************************************************************/
3736

38-
This class is designed to load TILED .tmx format maps, compatible with
39-
TILED up to version 0.9.0
40-
=======
41-
A note on the [current status](http://trederia.blogspot.com/2016/05/sfml-tmx-map-loader-200.html)
42-
43-
Looking for something more lightweight, yet flexible? Try [tmxlite](https://github.com/fallahn/tmxlite)!
44-
45-
/*********************************************************************
46-
47-
Matt Marchant 2013 - 2015
48-
SFML Tiled Map Loader - https://github.com/bjorn/tiled/wiki/TMX-Map-Format
49-
50-
The zlib license has been used to make this software fully compatible
51-
with SFML. See http://www.sfml-dev.org/license.php
52-
53-
This software is provided 'as-is', without any express or
54-
implied warranty. In no event will the authors be held
55-
liable for any damages arising from the use of this software.
56-
57-
Permission is granted to anyone to use this software for any purpose,
58-
including commercial applications, and to alter it and redistribute
59-
it freely, subject to the following restrictions:
60-
61-
1. The origin of this software must not be misrepresented;
62-
you must not claim that you wrote the original software.
63-
If you use this software in a product, an acknowledgment
64-
in the product documentation would be appreciated but
65-
is not required.
66-
67-
2. Altered source versions must be plainly marked as such,
68-
and must not be misrepresented as being the original software.
69-
70-
3. This notice may not be removed or altered from any
71-
source distribution.
72-
73-
*********************************************************************/
7437

7538
This class is designed to load TILED .tmx format maps, compatible with
7639
TILED up to version 0.9.0
77-
>>>>>>> master
7840

7941
http://trederia.blogspot.co.uk/2013/05/tiled-map-loader-for-sfml.html
8042

include/tmx/DebugShape.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class TMX_EXPORT_API DebugShape final : public sf::Drawable, public sf::Transfor
5656
void closeShape();
5757

5858
private:
59-
59+
sf::VertexArray m_array;
6060
bool m_closed;
6161
void draw(sf::RenderTarget& rt, sf::RenderStates states)const override;
6262
};

include/tmx/Log.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ namespace tmx
111111
#ifdef _MSC_VER
112112
outstring += "\n";
113113
auto stemp = std::wstring(std::begin(outstring), std::end(outstring));
114-
OutputDebugString(stemp.c_str());
114+
OutputDebugString((LPCSTR)stemp.c_str());
115115
#endif //_MSC_VER
116116
}
117117
if (output == Output::File || output == Output::All)

src/MapLayer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ LayerSet::LayerSet(const sf::Texture& texture, sf::Uint8 patchSize, const sf::Ve
7575
: m_texture (texture),
7676
m_patchSize (patchSize),
7777
m_mapSize (mapSize),
78-
m_patchCount(std::ceil(static_cast<float>(mapSize.x) / patchSize), std::ceil(static_cast<float>(mapSize.y) / patchSize)),
7978
m_tileSize (tileSize),
8079
m_patchCount(static_cast<sf::Uint32>(std::ceil(static_cast<float>(mapSize.x) / patchSize)), static_cast<sf::Uint32>(std::ceil(static_cast<float>(mapSize.y) / patchSize))),
8180
m_visible (true)

0 commit comments

Comments
 (0)