From 146666fad4e6cd5aa40c891c448973720ae64661 Mon Sep 17 00:00:00 2001 From: toaster Date: Sat, 18 Nov 2023 20:01:38 +0000 Subject: [PATCH] Use K_IsPlayerLosing for failure of Tutorial Challenge instead of recreated conditions, to reduce the number of moving parts --- src/g_game.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/g_game.c b/src/g_game.c index e5c42647c..6e92351f3 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -4212,9 +4212,8 @@ static void G_DoCompleted(void) { if ( !legitimateexit - || players[consoleplayer].position != 1 || !players[consoleplayer].exiting - || (players[consoleplayer].pflags & PF_NOCONTEST) + || K_IsPlayerLosing(&players[consoleplayer]) ) { // Return to whence you came with your tail between your legs