Fixed first display of worth being incorrect

Changed order of player's variable assignments so that StartingWorth is set before being displayed for the first time.
This commit is contained in:
Ben 2014-10-28 21:26:26 +00:00
parent a1f1ccffa6
commit a61575eb3d

View file

@ -1451,6 +1451,10 @@ function GM:PlayerReadyRound(pl)
local classid = pl:GetZombieClass() local classid = pl:GetZombieClass()
pl:SetZombieClass(classid, true, pl) pl:SetZombieClass(classid, true, pl)
if self.OverrideStartingWorth then
pl:SendLua("GAMEMODE.StartingWorth="..tostring(self.StartingWorth))
end
if pl:Team() == TEAM_UNDEAD then 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. -- 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) gamemode.Call("DoHonorableMentions", pl)
end end
if self.OverrideStartingWorth then
pl:SendLua("GAMEMODE.StartingWorth="..tostring(self.StartingWorth))
end
if pl:GetInfo("zs_noredeem") == "1" then if pl:GetInfo("zs_noredeem") == "1" then
pl.NoRedeeming = true pl.NoRedeeming = true
end end