If game crashes in level, add it to crash report

This commit is contained in:
indev committed 2024-03-12 20:39:15 +03:00
1 parent ad8cdc676c
commit e0b98707cf
1 file changed
+3
+3
View File
@@ -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: ");