mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-09 20:24:16 +00:00
@@ -14,6 +14,7 @@ void SwitchMultipleBehavior::Handle(BehaviorContext* context, RakNet::BitStream*
|
|||||||
|
|
||||||
if (!bitStream->Read(value)) {
|
if (!bitStream->Read(value)) {
|
||||||
Game::logger->Log("SwitchMultipleBehavior", "Unable to read value from bitStream, aborting Handle! %i", bitStream->GetNumberOfUnreadBits());
|
Game::logger->Log("SwitchMultipleBehavior", "Unable to read value from bitStream, aborting Handle! %i", bitStream->GetNumberOfUnreadBits());
|
||||||
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
uint32_t trigger = 0;
|
uint32_t trigger = 0;
|
||||||
|
@@ -22,6 +22,7 @@ void TacArcBehavior::Handle(BehaviorContext* context, RakNet::BitStream* bitStre
|
|||||||
|
|
||||||
if (!bitStream->Read(hit)) {
|
if (!bitStream->Read(hit)) {
|
||||||
Game::logger->Log("TacArcBehavior", "Unable to read hit from bitStream, aborting Handle! %i", bitStream->GetNumberOfUnreadBits());
|
Game::logger->Log("TacArcBehavior", "Unable to read hit from bitStream, aborting Handle! %i", bitStream->GetNumberOfUnreadBits());
|
||||||
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this->m_checkEnv) {
|
if (this->m_checkEnv) {
|
||||||
@@ -29,6 +30,7 @@ void TacArcBehavior::Handle(BehaviorContext* context, RakNet::BitStream* bitStre
|
|||||||
|
|
||||||
if (!bitStream->Read(blocked)) {
|
if (!bitStream->Read(blocked)) {
|
||||||
Game::logger->Log("TacArcBehavior", "Unable to read blocked from bitStream, aborting Handle! %i", bitStream->GetNumberOfUnreadBits());
|
Game::logger->Log("TacArcBehavior", "Unable to read blocked from bitStream, aborting Handle! %i", bitStream->GetNumberOfUnreadBits());
|
||||||
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (blocked) {
|
if (blocked) {
|
||||||
@@ -43,6 +45,7 @@ void TacArcBehavior::Handle(BehaviorContext* context, RakNet::BitStream* bitStre
|
|||||||
|
|
||||||
if (!bitStream->Read(count)) {
|
if (!bitStream->Read(count)) {
|
||||||
Game::logger->Log("TacArcBehavior", "Unable to read count from bitStream, aborting Handle! %i", bitStream->GetNumberOfUnreadBits());
|
Game::logger->Log("TacArcBehavior", "Unable to read count from bitStream, aborting Handle! %i", bitStream->GetNumberOfUnreadBits());
|
||||||
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (count > m_maxTargets && m_maxTargets > 0) {
|
if (count > m_maxTargets && m_maxTargets > 0) {
|
||||||
@@ -56,6 +59,7 @@ void TacArcBehavior::Handle(BehaviorContext* context, RakNet::BitStream* bitStre
|
|||||||
|
|
||||||
if (!bitStream->Read(id)) {
|
if (!bitStream->Read(id)) {
|
||||||
Game::logger->Log("TacArcBehavior", "Unable to read id from bitStream, aborting Handle! %i", bitStream->GetNumberOfUnreadBits());
|
Game::logger->Log("TacArcBehavior", "Unable to read id from bitStream, aborting Handle! %i", bitStream->GetNumberOfUnreadBits());
|
||||||
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
targets.push_back(id);
|
targets.push_back(id);
|
||||||
|
Reference in New Issue
Block a user