mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 21:13:26 +02:00
Fixes to compile with clang
This commit is contained in:
@@ -51,7 +51,6 @@ private:
|
||||
|
||||
TexturePtr m_lightTexture;
|
||||
FrameBufferPtr m_lightbuffer;
|
||||
MapView* m_mapView;
|
||||
Light m_globalLight;
|
||||
std::vector<LightSource> m_lightMap;
|
||||
};
|
||||
|
@@ -95,7 +95,6 @@ void Map::loadOtbm(const std::string& fileName, const UIWidgetPtr& pbar)
|
||||
uint8 mapDataType = nodeMapData->getU8();
|
||||
if(mapDataType == OTBM_TILE_AREA) {
|
||||
Position basePos = nodeMapData->getPosition();
|
||||
unsigned int pbarvalue=0;
|
||||
|
||||
for(const BinaryTreePtr &nodeTile : nodeMapData->getChildren()) {
|
||||
uint8 type = nodeTile->getU8();
|
||||
|
@@ -92,8 +92,6 @@ void MapView::draw(const Rect& rect)
|
||||
else
|
||||
drawFlags = Otc::DrawGround | Otc::DrawGroundBorders | Otc::DrawWalls | Otc::DrawItems;
|
||||
|
||||
Size tileSize = Size(1,1) * m_tileSize;
|
||||
|
||||
if(m_mustDrawVisibleTilesCache || (drawFlags & Otc::DrawAnimations)) {
|
||||
m_framebuffer->bind();
|
||||
|
||||
|
Reference in New Issue
Block a user