From 4b88ea04fd6427e973289e4a7ef9ead8ab97c05f Mon Sep 17 00:00:00 2001 From: Ashnal Date: Sun, 25 May 2025 17:29:59 -0400 Subject: [PATCH] FIx warnings to not appear in tutorial --- src/objects/checkpoint.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/objects/checkpoint.cpp b/src/objects/checkpoint.cpp index 1ab035865..83b7ed0bf 100644 --- a/src/objects/checkpoint.cpp +++ b/src/objects/checkpoint.cpp @@ -497,7 +497,7 @@ struct CheckpointManager if (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()); } @@ -508,7 +508,10 @@ struct CheckpointManager } 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); count_ += 1; // Mobjlist can't have a count on it, so we keep it here