Merge pull request #3 from BClark09/patch-1

Fixed first display of worth being incorrect
This commit is contained in:
William Moodhe / JetBoom 2014-10-28 19:03:44 -04:00
commit 397e915a30

View file

@ -1451,6 +1451,10 @@ function GM:PlayerReadyRound(pl)
local classid = pl:GetZombieClass()
pl:SetZombieClass(classid, true, pl)
if self.OverrideStartingWorth then
pl:SendLua("GAMEMODE.StartingWorth="..tostring(self.StartingWorth))
end
if pl:Team() == TEAM_UNDEAD then
-- This is just so they get updated on what class they are and have their hulls set up right.
@ -1466,10 +1470,6 @@ function GM:PlayerReadyRound(pl)
gamemode.Call("DoHonorableMentions", pl)
end
if self.OverrideStartingWorth then
pl:SendLua("GAMEMODE.StartingWorth="..tostring(self.StartingWorth))
end
if pl:GetInfo("zs_noredeem") == "1" then
pl.NoRedeeming = true
end