Skip to content

Commit 7f871ee

Browse files
authored
Merge pull request #1146 from NexiusTailer/patch-1
Fix for random occurrence of player state none
2 parents 90178ff + 5e6ed7e commit 7f871ee

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

Server/Source/player_impl.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -631,12 +631,6 @@ struct Player final : public IPlayer, public PoolIDProvider, public NoCopy
631631
toSpawn_ = true;
632632
spectateData_.type = PlayerSpectateData::ESpectateType::None;
633633
spectateData_.spectateID = INVALID_PLAYER_ID;
634-
635-
// When client exits spectate mode it will attempt to request a class or to spawn
636-
// but the server still thinks the it is in it's previous state.
637-
// This can lead to those requests being rejected.
638-
// This state update will fix that.
639-
setState(PlayerState_None, false);
640634
}
641635
else
642636
{

0 commit comments

Comments
 (0)