Core/Misc: Apply various cosmetic changes that were made to 3.3.5 branch when porting master branch code there

This commit is contained in:
Shauren
2022-04-01 20:36:30 +02:00
parent 2485d13e35
commit 98e848436d
6 changed files with 8 additions and 14 deletions
+2 -2
View File
@@ -571,7 +571,7 @@ public:
return true;
}
static bool HandleGameObjectSetStateCommand(ChatHandler* handler, GameObjectSpawnId guidLow, int32 objectType, Optional<int32> objectState)
static bool HandleGameObjectSetStateCommand(ChatHandler* handler, GameObjectSpawnId guidLow, int32 objectType, Optional<uint32> objectState)
{
if (!guidLow)
return false;
@@ -614,7 +614,7 @@ public:
object->SendCustomAnim(*objectState);
break;
case 5:
if (objectState < 0 || objectState > GO_DESTRUCTIBLE_REBUILDING)
if (*objectState > GO_DESTRUCTIBLE_REBUILDING)
return false;
object->SetDestructibleState(GameObjectDestructibleState(*objectState));