From 4ce9c921c13a9f49d4151b08a939e9924c3af435 Mon Sep 17 00:00:00 2001 From: BeniS Date: Sun, 19 Aug 2012 13:40:04 +1200 Subject: [PATCH] Previous commit and this commit should finish #58 --- modules/game_market/market.lua | 2 +- modules/gamelib/const.lua | 38 +++++++++++++++++----------------- src/otclient/const.h | 38 +++++++++++++++++----------------- 3 files changed, 39 insertions(+), 39 deletions(-) diff --git a/modules/game_market/market.lua b/modules/game_market/market.lua index 909f3c55..9dbf0e97 100644 --- a/modules/game_market/market.lua +++ b/modules/game_market/market.lua @@ -751,7 +751,7 @@ function Market.reset() categoryList:setCurrentOption(getMarketCategoryName(MarketCategory.First)) searchEdit:setText('') clearFilters() - if information and not table.empty(information) then + if not table.empty(information) then Market.updateCurrentItems() end end diff --git a/modules/gamelib/const.lua b/modules/gamelib/const.lua index 9087dea3..9ccedead 100644 --- a/modules/gamelib/const.lua +++ b/modules/gamelib/const.lua @@ -44,25 +44,25 @@ ChaseOpponent = 1 GameProtocolChecksum = 1 GameAccountNames = 2 GameChallangeOnLogin = 3 -GamePenalityOnDeath = 5 -GameNameOnNpcTrade = 6 -GameDoubleFreeCapacity = 7 -GameDoubleExperience = 8 -GameTotalCapacity = 9 -GameSkillsBase = 10 -GamePlayerRegenerationTime = 11 -GameChannelPlayerList = 13 -GamePlayerMounts = 14 -GameEnvironmentEffect = 15 -GameCreatureEmblems = 17 -GameItemAnimationPhase = 19 -GameMagicEffectU16 = 22 -GamePlayerMarket = 23 -GameSpritesU32 = 24 -GameChargeableItems = 25 -GameOfflineTrainingTime = 26 -GamePurseSlot = 27 -GameFormatCreatureName = 28 +GamePenalityOnDeath = 4 +GameNameOnNpcTrade = 5 +GameDoubleFreeCapacity = 6 +GameDoubleExperience = 7 +GameTotalCapacity = 8 +GameSkillsBase = 9 +GamePlayerRegenerationTime = 10 +GameChannelPlayerList = 11 +GamePlayerMounts = 12 +GameEnvironmentEffect = 13 +GameCreatureEmblems = 14 +GameItemAnimationPhase = 15 +GameMagicEffectU16 = 16 +GamePlayerMarket = 17 +GameSpritesU32 = 18 +GameChargeableItems = 19 +GameOfflineTrainingTime = 20 +GamePurseSlot = 21 +GameFormatCreatureName = 22 TextColors = { red = '#f55e5e', --'#c83200' diff --git a/src/otclient/const.h b/src/otclient/const.h index 19a55460..14633fb9 100644 --- a/src/otclient/const.h +++ b/src/otclient/const.h @@ -315,25 +315,25 @@ namespace Otc GameProtocolChecksum = 1, GameAccountNames = 2, GameChallangeOnLogin = 3, - GamePenalityOnDeath = 5, - GameNameOnNpcTrade = 6, - GameDoubleFreeCapacity = 7, - GameDoubleExperience = 8, - GameTotalCapacity = 9, - GameSkillsBase = 10, - GamePlayerRegenerationTime = 11, - GameChannelPlayerList = 13, - GamePlayerMounts = 14, - GameEnvironmentEffect = 15, - GameCreatureEmblems = 17, - GameItemAnimationPhase = 19, - GameMagicEffectU16 = 22, - GamePlayerMarket = 23, - GameSpritesU32 = 24, - GameChargeableItems = 25, - GameOfflineTrainingTime = 26, - GamePurseSlot = 27, - GameFormatCreatureName = 28, + GamePenalityOnDeath = 4, + GameNameOnNpcTrade = 5, + GameDoubleFreeCapacity = 6, + GameDoubleExperience = 7, + GameTotalCapacity = 8, + GameSkillsBase = 9, + GamePlayerRegenerationTime = 10, + GameChannelPlayerList = 11, + GamePlayerMounts = 12, + GameEnvironmentEffect = 13, + GameCreatureEmblems = 14, + GameItemAnimationPhase = 15, + GameMagicEffectU16 = 16, + GamePlayerMarket = 17, + GameSpritesU32 = 18, + GameChargeableItems = 19, + GameOfflineTrainingTime = 20, + GamePurseSlot = 21, + GameFormatCreatureName = 22, // 23-50 unused yet // 51-100 reserved to be defined in lua LastGameFeature = 101