mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 03:00:38 +00:00
- do not throw exceptions to exit without proper handling.
This commit is contained in:
parent
c3d742dda0
commit
75205ca69c
2 changed files with 1 additions and 5 deletions
|
@ -655,7 +655,7 @@ static FORCE_INLINE int32_t Blrintf(const float x)
|
||||||
#ifdef DEBUGGINGAIDS
|
#ifdef DEBUGGINGAIDS
|
||||||
# define Bexit(status) do { initprintf("exit(%d) at %s:%d in %s()\n", status, __FILE__, __LINE__, EDUKE32_FUNCTION); exit(status); } while (0)
|
# define Bexit(status) do { initprintf("exit(%d) at %s:%d in %s()\n", status, __FILE__, __LINE__, EDUKE32_FUNCTION); exit(status); } while (0)
|
||||||
#else
|
#else
|
||||||
# define Bexit(a) throw(1)
|
# define Bexit(a) exit(a)// throw(1)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -286,10 +286,6 @@ int32_t A_CheckInventorySprite(spritetype *s)
|
||||||
|
|
||||||
void G_GameExit(const char *msg)
|
void G_GameExit(const char *msg)
|
||||||
{
|
{
|
||||||
#ifdef LUNATIC
|
|
||||||
El_PrintTimes();
|
|
||||||
El_DestroyState(&g_ElState);
|
|
||||||
#endif
|
|
||||||
if (*msg != 0 && g_player[myconnectindex].ps != NULL)
|
if (*msg != 0 && g_player[myconnectindex].ps != NULL)
|
||||||
g_player[myconnectindex].ps->palette = BASEPAL;
|
g_player[myconnectindex].ps->palette = BASEPAL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue