Skip to content

Commit

Permalink
fix 2 major mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiskster committed Nov 22, 2023
1 parent a9d99ea commit 2fea76e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Lua/main_hud.lua
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,11 @@ local tooltips_hud = function(v, player)
if gametype ~= GT_PTSPICER then return end
local exitingCount, playerCount = PTSR_COUNT()
local practicemodetext = "\x84\* PRACTICE MODE *"
local infinitelapstext = "\x82\* LAPS: "..PTSR.laps.." *"
local infinitelapstext = "\x82\* LAPS: "..player.lapsdid.." *"
local lapstext = "\x82\* LAPS: "..player.lapsdid.." / "..PTSR.maxlaps.." *"

if (not player.pizzaface) and (player.exiting) and (player.playerstate ~= PST_DEAD) and not (player.lapsdid >= PTSR.maxlaps) then
if (not player.pizzaface) and (player.exiting) and (player.playerstate ~= PST_DEAD)
and not (player.lapsdid >= PTSR.maxlaps and CV_PTSR.default_maxlaps.value) then
if not player.hold_newlap then
v.drawString(160, 120, "\x85\* Hold FIRE to try a new lap! *", V_TRANSLUCENT|V_SNAPTOBOTTOM|V_PERPLAYER, "thin-center")
else
Expand All @@ -195,6 +196,7 @@ local tooltips_hud = function(v, player)
if (playerCount == 1) then
v.drawString(165, 157,practicemodetext , V_SNAPTOBOTTOM|addtransflag, "thin-center")
end

if player.pizzaface then
if player.pizzachargecooldown then
v.drawString(165, 157, "\x85\* COOLING DOWN *", V_SNAPTOBOTTOM|addtransflag, "thin-center")
Expand Down

0 comments on commit 2fea76e

Please sign in to comment.