Tiny fix
Saving newly made houses by the map editor is not even supported, so this is not a bug
This commit is contained in:
parent
d6105a98d1
commit
ff5c22d4c0
|
@ -61,8 +61,7 @@ void ItemType::unserialize(const BinaryTreePtr& node)
|
||||||
g_things.addItemType(tmp);
|
g_things.addItemType(tmp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
if(g_game.getProtocolVersion() >= 960) {
|
|
||||||
if(serverId > 30000 && serverId < 30100) {
|
if(serverId > 30000 && serverId < 30100) {
|
||||||
serverId -= 30000;
|
serverId -= 30000;
|
||||||
} else if(lastId > 99 && lastId != serverId - 1) {
|
} else if(lastId > 99 && lastId != serverId - 1) {
|
||||||
|
|
|
@ -240,8 +240,7 @@ void ThingTypeManager::parseItemType(uint16 id, TiXmlElement* elem)
|
||||||
addItemType(itemType);
|
addItemType(itemType);
|
||||||
} else
|
} else
|
||||||
itemType = getItemType(serverId);
|
itemType = getItemType(serverId);
|
||||||
}
|
} else {
|
||||||
if(g_game.getProtocolVersion() >= 960) {
|
|
||||||
if(serverId > 30000 && serverId < 30100) {
|
if(serverId > 30000 && serverId < 30100) {
|
||||||
serverId -= 30000;
|
serverId -= 30000;
|
||||||
|
|
||||||
|
|
|
@ -119,7 +119,7 @@ public:
|
||||||
|
|
||||||
void setHouseId(uint32 hid) { m_houseId = hid; }
|
void setHouseId(uint32 hid) { m_houseId = hid; }
|
||||||
uint32 getHouseId() { return m_houseId; }
|
uint32 getHouseId() { return m_houseId; }
|
||||||
bool isHouseTile() const { return m_houseId != 0 || (m_flags & TILESTATE_HOUSE) == TILESTATE_HOUSE; }
|
bool isHouseTile() const { return m_houseId != 0 && (m_flags & TILESTATE_HOUSE) == TILESTATE_HOUSE; }
|
||||||
|
|
||||||
TilePtr asTile() { return static_self_cast<Tile>(); }
|
TilePtr asTile() { return static_self_cast<Tile>(); }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue