mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +00:00
FIx warnings to not appear in tutorial
This commit is contained in:
parent
083cc4a44f
commit
4b88ea04fd
1 changed files with 5 additions and 2 deletions
|
|
@ -497,7 +497,7 @@ struct CheckpointManager
|
||||||
if (chk->linetag())
|
if (chk->linetag())
|
||||||
{
|
{
|
||||||
auto lines = tagged_lines(chk->linetag());
|
auto lines = tagged_lines(chk->linetag());
|
||||||
if (lines.empty())
|
if (lines.empty() && gametype != GT_TUTORIAL)
|
||||||
{
|
{
|
||||||
CONS_Alert(CONS_WARNING, "Checkpoint thing %d, has linetag %d, but no lines found. Please ensure all checkpoints have associated lines.\n", chk->spawnpoint - mapthings, chk->linetag());
|
CONS_Alert(CONS_WARNING, "Checkpoint thing %d, has linetag %d, but no lines found. Please ensure all checkpoints have associated lines.\n", chk->spawnpoint - mapthings, chk->linetag());
|
||||||
}
|
}
|
||||||
|
|
@ -508,7 +508,10 @@ struct CheckpointManager
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
CONS_Alert(CONS_WARNING, "Checkpoint thing %d, has no linetag. Please ensure all checkpoint things have a linetag.\n", chk->spawnpoint - mapthings, chk->spawnpoint->type);
|
if (gametype != GT_TUTORIAL)
|
||||||
|
{
|
||||||
|
CONS_Alert(CONS_WARNING, "Checkpoint thing %d, has no linetag. Please ensure all checkpoint things have a linetag.\n", chk->spawnpoint - mapthings);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
list_.push_front(chk);
|
list_.push_front(chk);
|
||||||
count_ += 1; // Mobjlist can't have a count on it, so we keep it here
|
count_ += 1; // Mobjlist can't have a count on it, so we keep it here
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue