- do not throw exceptions to exit without proper handling.

This commit is contained in:
Christoph Oelckers 2019-10-20 11:28:16 +02:00
parent c3d742dda0
commit 75205ca69c
2 changed files with 1 additions and 5 deletions

View file

@ -655,7 +655,7 @@ static FORCE_INLINE int32_t Blrintf(const float x)
#ifdef DEBUGGINGAIDS
# define Bexit(status) do { initprintf("exit(%d) at %s:%d in %s()\n", status, __FILE__, __LINE__, EDUKE32_FUNCTION); exit(status); } while (0)
#else
# define Bexit(a) throw(1)
# define Bexit(a) exit(a)// throw(1)
#endif

View file

@ -286,10 +286,6 @@ int32_t A_CheckInventorySprite(spritetype *s)
void G_GameExit(const char *msg)
{
#ifdef LUNATIC
El_PrintTimes();
El_DestroyState(&g_ElState);
#endif
if (*msg != 0 && g_player[myconnectindex].ps != NULL)
g_player[myconnectindex].ps->palette = BASEPAL;