Skip to content

Commit

Permalink
fix linetriggersystem & player_lapend lua errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiskster committed Feb 26, 2024
1 parent 9d5ed7a commit 2dd6b5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/Lua/Hooks/LineTriggerSystem.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ addHook("MobjLineCollide", function(mobj, line)

player.ptsr_outofgame = 1

chatprint(lapstring, true)
if CV_PTSR.forcelap.value then
PTSR.StartNewLap(mobj)
end
Expand Down
2 changes: 2 additions & 0 deletions src/Lua/PlayerScripts/player_lapend.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// TODO: Make DoLapBonus not call ChatLapStatus, and seperately use them when they're needed.

PTSR.ChatLapStatus = function(player)
local lapstring = "\x82\*LAP ".. player.lapsdid.. " ("..player.name.." "..G_TicsToMTIME(player.laptime, true)..")"
chatprint(lapstring, true)
Expand Down
2 changes: 1 addition & 1 deletion src/Lua/pizzaface.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ PTSR.PFMaskData = {

function PTSR:PizzaCollision(peppino, pizza)
if PTSR.gamemode == 1 then
if (leveltime - peppino.player.lastparryframe) <= CV_PTSR.parry_safeframes.value then
if peppino.player.lastparryframe and (leveltime - peppino.player.lastparryframe) <= CV_PTSR.parry_safeframes.value then
PTSR.DoParry(peppino.player.mo, pizza)
PTSR.DoParryAnim(peppino.player.mo, true)
PTSR.DoParryAnim(pizza)
Expand Down

0 comments on commit 2dd6b5c

Please sign in to comment.