From c84635a007a5b44e8cc5fe132b3d70b2420d66b9 Mon Sep 17 00:00:00 2001 From: Tetro48 <76738929+Tetro48@users.noreply.github.com> Date: Wed, 14 Jun 2023 12:36:23 +0700 Subject: [PATCH] Global random for visual part in Marathon C99 --- tetris/modes/marathon_c99.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tetris/modes/marathon_c99.lua b/tetris/modes/marathon_c99.lua index 0d11fc2..9a4eea2 100644 --- a/tetris/modes/marathon_c99.lua +++ b/tetris/modes/marathon_c99.lua @@ -330,9 +330,9 @@ function MarathonC99Game:drawScoringInfo() {1, 1, 1, 1} ) love.graphics.printf( - (self.slots[1] and self.slots[1] or love.math.random(4)) .. " " .. - (self.slots[2] and self.slots[2] or love.math.random(4)) .. " " .. - love.math.random(4), + (self.slots[1] and self.slots[1] or math.random(4)) .. " " .. + (self.slots[2] and self.slots[2] or math.random(4)) .. " " .. + math.random(4), 240, 80, 100, "left") love.graphics.setColor(1,1,1,1) end