Forgot to make private functions local.

master
BeniS 12 years ago
parent 28825a3298
commit 6fc11d2fa9

@ -4,7 +4,7 @@ local market
-- private functions -- private functions
function parseOpcode(protocol, opcode, msg) local function parseOpcode(protocol, opcode, msg)
if not g_game.getFeature(GamePlayerMarket) then if not g_game.getFeature(GamePlayerMarket) then
return false return false
end end
@ -24,12 +24,12 @@ function parseOpcode(protocol, opcode, msg)
return true return true
end end
function send(msg) local function send(msg)
print(msg:getMessageSize()) print(msg:getMessageSize())
g_game.getProtocolGame():safeSend(msg) g_game.getProtocolGame():safeSend(msg)
end end
function readMarketOffer(msg, action, var) local function readMarketOffer(msg, action, var)
local timestamp = msg:getU32() local timestamp = msg:getU32()
local counter = msg:getU16() local counter = msg:getU16()
@ -55,7 +55,7 @@ end
-- parsing protocols -- parsing protocols
function parseMarketEnter(msg) local function parseMarketEnter(msg)
local balance = msg:getU32() local balance = msg:getU32()
local offers = msg:getU8() local offers = msg:getU8()
local depotItems = {} local depotItems = {}
@ -71,11 +71,11 @@ function parseMarketEnter(msg)
Market.onMarketEnter(depotItems, offers, balance) Market.onMarketEnter(depotItems, offers, balance)
end end
function parseMarketLeave(msg) local function parseMarketLeave(msg)
Market.onMarketLeave() Market.onMarketLeave()
end end
function parseMarketDetail(msg) local function parseMarketDetail(msg)
local itemId = msg:getU16() local itemId = msg:getU16()
local descriptions = {} local descriptions = {}
@ -110,7 +110,7 @@ function parseMarketDetail(msg)
Market.onMarketDetail(itemId, descriptions, purchaseStats, saleStats) Market.onMarketDetail(itemId, descriptions, purchaseStats, saleStats)
end end
function parseMarketBrowse(msg) local function parseMarketBrowse(msg)
local var = msg:getU16() local var = msg:getU16()
local offers = {} local offers = {}

@ -38,7 +38,7 @@ Game g_game;
Game::Game() Game::Game()
{ {
resetGameStates(); resetGameStates();
setClientVersion(954); setClientVersion(860);
} }
void Game::resetGameStates() void Game::resetGameStates()

Loading…
Cancel
Save