From 6fc11d2fa9507afe6752867b197a9849f838efef Mon Sep 17 00:00:00 2001 From: BeniS Date: Wed, 18 Jul 2012 11:31:32 +1200 Subject: [PATCH] Forgot to make private functions local. --- modules/game_market/marketprotocol.lua | 14 +++++++------- src/otclient/game.cpp | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/game_market/marketprotocol.lua b/modules/game_market/marketprotocol.lua index 2e8eb1aa..207899fe 100644 --- a/modules/game_market/marketprotocol.lua +++ b/modules/game_market/marketprotocol.lua @@ -4,7 +4,7 @@ local market -- private functions -function parseOpcode(protocol, opcode, msg) +local function parseOpcode(protocol, opcode, msg) if not g_game.getFeature(GamePlayerMarket) then return false end @@ -24,12 +24,12 @@ function parseOpcode(protocol, opcode, msg) return true end -function send(msg) +local function send(msg) print(msg:getMessageSize()) g_game.getProtocolGame():safeSend(msg) end -function readMarketOffer(msg, action, var) +local function readMarketOffer(msg, action, var) local timestamp = msg:getU32() local counter = msg:getU16() @@ -55,7 +55,7 @@ end -- parsing protocols -function parseMarketEnter(msg) +local function parseMarketEnter(msg) local balance = msg:getU32() local offers = msg:getU8() local depotItems = {} @@ -71,11 +71,11 @@ function parseMarketEnter(msg) Market.onMarketEnter(depotItems, offers, balance) end -function parseMarketLeave(msg) +local function parseMarketLeave(msg) Market.onMarketLeave() end -function parseMarketDetail(msg) +local function parseMarketDetail(msg) local itemId = msg:getU16() local descriptions = {} @@ -110,7 +110,7 @@ function parseMarketDetail(msg) Market.onMarketDetail(itemId, descriptions, purchaseStats, saleStats) end -function parseMarketBrowse(msg) +local function parseMarketBrowse(msg) local var = msg:getU16() local offers = {} diff --git a/src/otclient/game.cpp b/src/otclient/game.cpp index 645e0ff6..323df744 100644 --- a/src/otclient/game.cpp +++ b/src/otclient/game.cpp @@ -38,7 +38,7 @@ Game g_game; Game::Game() { resetGameStates(); - setClientVersion(954); + setClientVersion(860); } void Game::resetGameStates()