From c06e3d3352299cad94ced7469744927b609010e2 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Mon, 26 May 2025 10:38:44 -0400 Subject: [PATCH] Catch Animdefs error instead of I_Erroring --- src/p_spec.c | 4 ++-- src/sdl/i_system.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/p_spec.c b/src/p_spec.c index 06cda1111..bbe27f166 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -237,9 +237,9 @@ void P_InitPicAnims(void) if (lastanim->numpics < 2) { - free(anims); - I_Error("P_InitPicAnims: bad cycle from %s to %s", + CONS_Alert(CONS_WARNING, "P_InitPicAnims: bad cycle from %s to %s.\n", animdefs->startname, animdefs->endname); + continue; } lastanim->speed = animdef->speed; diff --git a/src/sdl/i_system.cpp b/src/sdl/i_system.cpp index d26831bb1..d5fde7000 100644 --- a/src/sdl/i_system.cpp +++ b/src/sdl/i_system.cpp @@ -355,15 +355,15 @@ static void I_ShowErrorMessageBox(const char *messagefordevelopers, boolean dump finalmessage, sizeof(finalmessage), "\"SRB2Kart V2\" has encountered an unrecoverable error and needs to close.\n" - "The %s log file is located at (%s).\n" + "The %slog file is located at (%s).\n" "\n" "\n" "%s", dumpmade ? #if defined (UNIXBACKTRACE) - "crash-log.txt" + "crash-log.txt " #elif defined (_WIN32) - ".rpt crash dump" + ".rpt crash dump " #endif : "", logfilename,