Skip to content

Commit

Permalink
Check for Otc::GameAttackSeq feature
Browse files Browse the repository at this point in the history
  • Loading branch information
iryont committed Jun 21, 2015
1 parent b5a14dd commit b9848f3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/client/protocolgamesend.cpp
Expand Up @@ -583,10 +583,8 @@ void ProtocolGame::sendChangeFightModes(Otc::FightModes fightMode, Otc::ChaseMod
msg->addU8(fightMode);
msg->addU8(chaseMode);
msg->addU8(safeFight ? 0x01: 0x00);

if(g_game.getFeature(Otc::GamePVPMode))
msg->addU8(pvpMode);

send(msg);
}

Expand All @@ -595,7 +593,8 @@ void ProtocolGame::sendAttack(uint creatureId, uint seq)
OutputMessagePtr msg(new OutputMessage);
msg->addU8(Proto::ClientAttack);
msg->addU32(creatureId);
msg->addU32(seq);
if(g_game.getFeature(Otc::GameAttackSeq))
msg->addU32(seq);
send(msg);
}

Expand All @@ -604,7 +603,8 @@ void ProtocolGame::sendFollow(uint creatureId, uint seq)
OutputMessagePtr msg(new OutputMessage);
msg->addU8(Proto::ClientFollow);
msg->addU32(creatureId);
msg->addU32(seq);
if(g_game.getFeature(Otc::GameAttackSeq))
msg->addU32(seq);
send(msg);
}

Expand Down Expand Up @@ -652,10 +652,8 @@ void ProtocolGame::sendShareExperience(bool active)
OutputMessagePtr msg(new OutputMessage);
msg->addU8(Proto::ClientShareExperience);
msg->addU8(active ? 0x01 : 0x00);

if(g_game.getClientVersion() < 910)
msg->addU8(0);

send(msg);
}

Expand Down

0 comments on commit b9848f3

Please sign in to comment.