Properly rename the stand state method...
This commit is contained in:
1 parent
a12493fd84
commit
a7f68c489a
9 files changed
+14
-14
No files matched your search
@@ -1321,8 +1321,8 @@ void GameObject::Use(Unit* user)
|
||||
{
|
||||
if (Player* ChairUser = ObjectAccessor::FindPlayer(itr->second))
|
||||
{
|
||||
if (ChairUser->IsSitState() && ChairUser->SetStandState() != UNIT_STAND_STATE_SIT && ChairUser->GetExactDist2d(x_i, y_i) < 0.1f)
|
||||
continue; // This seat is already occupied by ChairUser. NOTE: Not sure if the ChairUser->SetStandState() != UNIT_STAND_STATE_SIT check is required.
|
||||
if (ChairUser->IsSitState() && ChairUser->GetStandState() != UNIT_STAND_STATE_SIT && ChairUser->GetExactDist2d(x_i, y_i) < 0.1f)
|
||||
continue; // This seat is already occupied by ChairUser. NOTE: Not sure if the ChairUser->GetStandState() != UNIT_STAND_STATE_SIT check is required.
|
||||
else
|
||||
itr->second.Clear(); // This seat is unoccupied.
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user