mirror of
https://github.com/edubart/otclient.git
synced 2025-11-03 12:16:23 +01:00
Many changes
* IMPORTANT: dat/spr should now be placed in /data/things/ * Rename game_tibiafiles to game_things * Make battle list algorithm much faster * Split UITabBar into UITabBar and UIMoveableTabBar * Fix other minor issues
This commit is contained in:
@@ -79,13 +79,13 @@ void MinimapBlock::update()
|
||||
|
||||
void MinimapBlock::updateTile(int x, int y, const MinimapTile& tile)
|
||||
{
|
||||
if(!(m_tiles[getTileIndex(x,y)] == tile)) {
|
||||
m_tiles[getTileIndex(x,y)] = tile;
|
||||
if(tile.color != 0)
|
||||
m_shouldDraw = true;
|
||||
|
||||
if(tile.color != 0)
|
||||
m_shouldDraw = true;
|
||||
if(m_tiles[getTileIndex(x,y)].color != tile.color)
|
||||
m_mustUpdate = true;
|
||||
}
|
||||
|
||||
m_tiles[getTileIndex(x,y)] = tile;
|
||||
}
|
||||
|
||||
void Minimap::init()
|
||||
|
||||
Reference in New Issue
Block a user