mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 12:04:55 +02: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:
@@ -166,7 +166,7 @@ void Map::loadOtbm(const std::string& fileName, const UIWidgetPtr& pbar)
|
||||
}
|
||||
|
||||
if(house && item->isMoveable()) {
|
||||
g_logger.warning(stdext::format("Movable item found in house: %d at pos %s - escaping...", item->getId(), stdext::to_string(pos)));
|
||||
g_logger.warning(stdext::format("Moveable item found in house: %d at pos %s - escaping...", item->getId(), stdext::to_string(pos)));
|
||||
item.reset();
|
||||
}
|
||||
|
||||
|
@@ -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()
|
||||
|
@@ -42,9 +42,9 @@ namespace Proto {
|
||||
|
||||
enum GameServerOpcodes : uint8
|
||||
{
|
||||
GameServerLoginOrPendingState = 10,
|
||||
GameServerLoginOrPendingState = 10,
|
||||
GameServerGMActions = 11,
|
||||
GameServerEnterGame = 15,
|
||||
GameServerEnterGame = 15,
|
||||
GameServerUpdateNeeded = 17,
|
||||
GameServerLoginError = 20,
|
||||
GameServerLoginAdvice = 21,
|
||||
|
@@ -107,6 +107,8 @@ public:
|
||||
void sendNewNewRuleViolation(int reason, int action, const std::string& characterName, const std::string& comment, const std::string& translation);
|
||||
void sendRequestItemInfo(int itemId, int subType, int index);
|
||||
void sendAnswerModalDialog(int dialog, int button, int choice);
|
||||
|
||||
// otclient only
|
||||
void sendChangeMapAwareRange(int xrange, int yrange);
|
||||
|
||||
protected:
|
||||
|
Reference in New Issue
Block a user