From e0b98707cfa3b31cb40c1b003fcd8e03b341e651 Mon Sep 17 00:00:00 2001 From: Indev Date: Tue, 12 Mar 2024 20:38:57 +0300 Subject: [PATCH] If game crashes in level, add it to crash report --- src/sdl/i_system.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c index 2f8e84767..8090a36ea 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -343,6 +343,9 @@ static void write_backtrace(bt_crash_reason_t reason) if (compdate && comptime && comprevision && compbranch) fprintf(out, "Compiled: %s %s, commit %s, branch %s\n", compdate, comptime, comprevision, compbranch); + if (gamestate == GS_LEVEL) + fprintf(out, "Game map: %s\n", G_BuildMapName(gamemap)); + fprintf(out, "Time of crash: %s\n", asctime(timeinfo)); fprintf(out, "Caused by: ");