FIx warnings to not appear in tutorial

This commit is contained in:
Ashnal 2025-05-25 17:29:59 -04:00
parent 083cc4a44f
commit 4b88ea04fd

View file

@ -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