mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
waiting list, u16 effects feature, protocolsend uses clientversion
This commit is contained in:
@@ -312,6 +312,7 @@ namespace Otc
|
||||
GameItemAnimationPhase,
|
||||
GameTrucatedPingOpcode,
|
||||
GameReverseCreatureStack,
|
||||
GameMagicEffectU16,
|
||||
LastGameFeature
|
||||
};
|
||||
}
|
||||
|
@@ -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);
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user