From 1cac2c76c6d8ce53921bcfd246372f377cde69f9 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sat, 30 Nov 2019 06:10:16 +0000 Subject: [PATCH] SW: Add debug_break() to _Assert() git-svn-id: https://svn.eduke32.com/eduke32@8335 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/sw/src/game.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/sw/src/game.cpp b/source/sw/src/game.cpp index 500d0a689..8c644ea20 100644 --- a/source/sw/src/game.cpp +++ b/source/sw/src/game.cpp @@ -2657,9 +2657,11 @@ void Control() void _Assert(const char *expr, const char *strFile, unsigned uLine) { - sprintf(ds, "Assertion failed: %s %s, line %u", expr, strFile, uLine); - MONO_PRINT(ds); + buildprintf(ds, "Assertion failed: %s %s, line %u", expr, strFile, uLine); + debug_break(); + TerminateGame(); + #if 1 //def RENDERTYPEWIN wm_msgbox(apptitle, "%s", ds); #else