waiting list, u16 effects feature, protocolsend uses clientversion

This commit is contained in:
Henrique Santiago
2012-06-05 20:46:36 -03:00
parent 3cb5216858
commit 86cade0aa9
5 changed files with 124 additions and 15 deletions

View File

@@ -312,6 +312,7 @@ namespace Otc
GameItemAnimationPhase,
GameTrucatedPingOpcode,
GameReverseCreatureStack,
GameMagicEffectU16,
LastGameFeature
};
}

View File

@@ -659,7 +659,11 @@ void ProtocolGame::parseWorldLight(const InputMessagePtr& msg)
void ProtocolGame::parseMagicEffect(const InputMessagePtr& msg)
{
Position pos = getPosition(msg);
int effectId = msg->getU8();
int effectId;
if(g_game.getFeature(Otc::GameMagicEffectU16))
effectId = msg->getU16();
else
effectId = msg->getU8();
EffectPtr effect = EffectPtr(new Effect());
effect->setId(effectId);

View File

@@ -50,7 +50,7 @@ void ProtocolGame::sendLoginPacket(uint challangeTimestamp, uint8 challangeRando
msg->addU8(Proto::ClientEnterGame);
msg->addU16(Proto::ClientOs);
msg->addU16(Proto::ClientVersion);
msg->addU16(g_game.getClientVersion());
int paddingBytes = 128;
msg->addU8(0); // first RSA byte must be 0