forked from Not/srb2k-leaderboard
use TOL_SP and TOL_COOP as indicators of nuked race, battle maps
This commit is contained in:
parent
7b28cd0777
commit
13aeceeedd
@ -373,7 +373,8 @@ local function findMap(player, ...)
|
|||||||
|
|
||||||
local hell = "\x85HELL"
|
local hell = "\x85HELL"
|
||||||
local tol = {
|
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_RACE] = "\x88Race\x80",
|
||||||
[TOL_MATCH] = "\x87\Battle\x80"
|
[TOL_MATCH] = "\x87\Battle\x80"
|
||||||
}
|
}
|
||||||
@ -390,12 +391,12 @@ local function findMap(player, ...)
|
|||||||
lvltype = tol[map.typeoflevel & 0x1F] or map.typeoflevel
|
lvltype = tol[map.typeoflevel & 0x1F] or map.typeoflevel
|
||||||
|
|
||||||
-- If not battle print numlaps
|
-- 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(
|
CONS_Printf(
|
||||||
player,
|
player,
|
||||||
string.format(
|
string.format(
|
||||||
"%s %-10s %-25s - %s\t%s",
|
"%s %-9s %-25s - %s\t%s",
|
||||||
G_BuildMapName(i),
|
G_BuildMapName(i),
|
||||||
lvltype,
|
lvltype,
|
||||||
map.lvlttl,
|
map.lvlttl,
|
||||||
|
Loading…
Reference in New Issue
Block a user