From 13aeceeedde0235c184992631250359de207f3d0 Mon Sep 17 00:00:00 2001 From: Not Date: Fri, 20 May 2022 19:49:49 +0200 Subject: [PATCH] use TOL_SP and TOL_COOP as indicators of nuked race, battle maps --- leaderboard.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/leaderboard.lua b/leaderboard.lua index b39748a..fe5650c 100644 --- a/leaderboard.lua +++ b/leaderboard.lua @@ -373,7 +373,8 @@ local function findMap(player, ...) local hell = "\x85HELL" local tol = { - [TOL_SP] = "\x81Nuked\x80", -- Single player + [TOL_SP] = "\x81Race\x80", -- Nuked race maps + [TOL_COOP] = "\x8D\Battle\x80", -- Nuked battle maps [TOL_RACE] = "\x88Race\x80", [TOL_MATCH] = "\x87\Battle\x80" } @@ -390,12 +391,12 @@ local function findMap(player, ...) lvltype = tol[map.typeoflevel & 0x1F] or map.typeoflevel -- If not battle print numlaps - lvltype = (map.typeoflevel & TOL_MATCH and lvltype) or string.format("%-7s \x82%-2d\x80", lvltype, map.numlaps) + lvltype = (map.typeoflevel & (TOL_MATCH | TOL_COOP) and lvltype) or string.format("%s \x82%-2d\x80", lvltype, map.numlaps) CONS_Printf( player, string.format( - "%s %-10s %-25s - %s\t%s", + "%s %-9s %-25s - %s\t%s", G_BuildMapName(i), lvltype, map.lvlttl,