From 45ab91267f60debf6a7fb698d24cf965d8c32a41 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 28 Jun 2021 13:36:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BD=95=E5=83=8F=E6=92=AD?= =?UTF-8?q?=E6=94=BE=E7=BB=93=E6=9D=9F=E6=97=B6=E5=A6=82=E6=9E=9C=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E6=AE=B5=E4=BD=8D=E4=BC=9A=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/gametoolfunc.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/parts/gametoolfunc.lua b/parts/gametoolfunc.lua index 46433ef8..f6949a6e 100644 --- a/parts/gametoolfunc.lua +++ b/parts/gametoolfunc.lua @@ -245,8 +245,11 @@ function loadGame(mode,ifQuickPlay,ifNet)--Load a mode and go to game scene end function gameOver()--Save record if GAME.replaying then - local R=GAME.curMode.getRank(PLAYERS[1]) - if R>0 then GAME.rank=R end + local R=GAME.curMode.getRank + if R then + R=R(PLAYERS[1]) + if R and R>0 then GAME.rank=R end + end end trySave()