Speed up compilation time for luafunctions

* Other compile fixes for gcc
This commit is contained in:
Eduardo Bart
2013-01-29 14:35:20 -02:00
parent 8d6ccb8d83
commit 80a7ecb3a4
8 changed files with 29 additions and 22 deletions

View File

@@ -1370,20 +1370,20 @@ void ProtocolGame::parseOpenOutfitWindow(const InputMessagePtr& msg)
void ProtocolGame::parseVipAdd(const InputMessagePtr& msg)
{
uint id, markId, status;
uint id, iconId = 0, status;
std::string name, desc;
bool notifyLogin;
bool notifyLogin = false;
id = msg->getU32();
name = g_game.formatCreatureName(msg->getString());
if(g_game.getProtocolVersion() >= 963) {
desc = msg->getString();
markId = msg->getU32();
iconId = msg->getU32();
notifyLogin = msg->getU8();
}
status = msg->getU8();
g_game.processVipAdd(id, name, status);
g_game.processVipAdd(id, name, status, iconId, notifyLogin);
}
void ProtocolGame::parseVipState(const InputMessagePtr& msg)