Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Commit

Permalink
Fixed that ppl were unable to leave the Spectator mode
Browse files Browse the repository at this point in the history
  • Loading branch information
GhoulofGSG9 committed Oct 5, 2014
1 parent 3f79c07 commit c423759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/shine/extensions/captains/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ end

function Plugin:JoinTeam( Gamerules, Player, NewTeam, Force, ShineForce )
if ShineForce or self.dt.State ~= 1 and self.Config.AllowSpectating and NewTeam == kSpectatorIndex or
self.Config.AllowPregameJoin and self.dt.State == 0 then return end
self.Config.AllowPregameJoin and self.dt.State == 0 or Player:GetTeamNumber() == kSpectatorIndex and NewTeam == kTeamReadyRoom then return end

return false
end
Expand Down

0 comments on commit c423759

Please sign in to comment.