From a61575eb3de502aaaa057b171f0b36e247637a01 Mon Sep 17 00:00:00 2001 From: Ben Date: Tue, 28 Oct 2014 21:26:26 +0000 Subject: [PATCH] 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. --- gamemodes/zombiesurvival/gamemode/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gamemodes/zombiesurvival/gamemode/init.lua b/gamemodes/zombiesurvival/gamemode/init.lua index 3d8db46..21984a7 100644 --- a/gamemodes/zombiesurvival/gamemode/init.lua +++ b/gamemodes/zombiesurvival/gamemode/init.lua @@ -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