From 2a1ef00542f52fb267e4af1dadaa6faa141c0993 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 22 Aug 2020 09:39:49 +0200 Subject: [PATCH] - redirect messages from last commit to debug mode. --- source/exhumed/src/gun.cpp | 2 +- source/exhumed/src/move.cpp | 8 ++++---- source/exhumed/src/player.cpp | 2 +- source/exhumed/src/queen.cpp | 4 ++-- source/exhumed/src/runlist.cpp | 2 +- source/exhumed/src/snake.cpp | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/source/exhumed/src/gun.cpp b/source/exhumed/src/gun.cpp index e52513601..6dadd4e24 100644 --- a/source/exhumed/src/gun.cpp +++ b/source/exhumed/src/gun.cpp @@ -311,7 +311,7 @@ int CheckCloseRange(short nPlayer, int *x, int *y, int *z, short *nSector) if (sqrtNum > INT_MAX) { - OSD_Printf("%s %d: overflow\n", EDUKE32_FUNCTION, __LINE__); + DPrintf(DMSG_WARNING, "%s %d: overflow\n", EDUKE32_FUNCTION, __LINE__); sqrtNum = INT_MAX; } diff --git a/source/exhumed/src/move.cpp b/source/exhumed/src/move.cpp index 45bb94c83..df8410e48 100644 --- a/source/exhumed/src/move.cpp +++ b/source/exhumed/src/move.cpp @@ -835,7 +835,7 @@ void CreatePushBlock(int nSector) if (sqrtNum > INT_MAX) { - OSD_Printf("%s %d: overflow\n", EDUKE32_FUNCTION, __LINE__); + DPrintf(DMSG_WARNING, "%s %d: overflow\n", EDUKE32_FUNCTION, __LINE__); sqrtNum = INT_MAX; } @@ -1108,7 +1108,7 @@ void SetQuake(short nSprite, int nVal) if (sqrtNum > INT_MAX) { - OSD_Printf("%s %d: overflow\n", EDUKE32_FUNCTION, __LINE__); + DPrintf(DMSG_WARNING, "%s %d: overflow\n", EDUKE32_FUNCTION, __LINE__); sqrtNum = INT_MAX; } @@ -1170,7 +1170,7 @@ int AngleChase(int nSprite, int nSprite2, int ebx, int ecx, int push1) if (sqrtNum > INT_MAX) { - OSD_Printf("%s %d: overflow\n", EDUKE32_FUNCTION, __LINE__); + DPrintf(DMSG_WARNING, "%s %d: overflow\n", EDUKE32_FUNCTION, __LINE__); sqrtNum = INT_MAX; } @@ -1222,7 +1222,7 @@ int AngleChase(int nSprite, int nSprite2, int ebx, int ecx, int push1) if (sqrtNum > INT_MAX) { - OSD_Printf("%s %d: overflow\n", EDUKE32_FUNCTION, __LINE__); + DPrintf(DMSG_WARNING, "%s %d: overflow\n", EDUKE32_FUNCTION, __LINE__); sqrtNum = INT_MAX; } diff --git a/source/exhumed/src/player.cpp b/source/exhumed/src/player.cpp index 2e03400e3..43e00f137 100644 --- a/source/exhumed/src/player.cpp +++ b/source/exhumed/src/player.cpp @@ -1418,7 +1418,7 @@ loc_1AB8E: if (sqrtNum > INT_MAX) { - OSD_Printf("%s %d: overflow\n", EDUKE32_FUNCTION, __LINE__); + DPrintf(DMSG_WARNING, "%s %d: overflow\n", EDUKE32_FUNCTION, __LINE__); sqrtNum = INT_MAX; } diff --git a/source/exhumed/src/queen.cpp b/source/exhumed/src/queen.cpp index d6dfb4f69..8e6919519 100644 --- a/source/exhumed/src/queen.cpp +++ b/source/exhumed/src/queen.cpp @@ -262,7 +262,7 @@ int QueenAngleChase(short nSprite, short nSprite2, int val1, int val2) if (sqrtVal > INT_MAX) { - OSD_Printf("%s %d: overflow\n", EDUKE32_FUNCTION, __LINE__); + DPrintf(DMSG_WARNING, "%s %d: overflow\n", EDUKE32_FUNCTION, __LINE__); sqrtVal = INT_MAX; } @@ -307,7 +307,7 @@ int QueenAngleChase(short nSprite, short nSprite2, int val1, int val2) if (sqrtNum > INT_MAX) { - OSD_Printf("%s %d: overflow\n", EDUKE32_FUNCTION, __LINE__); + DPrintf(DMSG_WARNING, "%s %d: overflow\n", EDUKE32_FUNCTION, __LINE__); sqrtNum = INT_MAX; } diff --git a/source/exhumed/src/runlist.cpp b/source/exhumed/src/runlist.cpp index c6d22801f..434efb066 100644 --- a/source/exhumed/src/runlist.cpp +++ b/source/exhumed/src/runlist.cpp @@ -1550,7 +1550,7 @@ int runlist_CheckRadialDamage(short nSprite) if (sqrtNum > INT_MAX) { - OSD_Printf("%s %d: overflow\n", EDUKE32_FUNCTION, __LINE__); + DPrintf(DMSG_WARNING, "%s %d: overflow\n", EDUKE32_FUNCTION, __LINE__); sqrtNum = INT_MAX; } diff --git a/source/exhumed/src/snake.cpp b/source/exhumed/src/snake.cpp index fc9e7c3be..90a785fee 100644 --- a/source/exhumed/src/snake.cpp +++ b/source/exhumed/src/snake.cpp @@ -152,7 +152,7 @@ int BuildSnake(short nPlayer, short zVal) if (sqrtNum > INT_MAX) { - OSD_Printf("%s %d: overflow\n", EDUKE32_FUNCTION, __LINE__); + DPrintf(DMSG_WARNING, "%s %d: overflow\n", EDUKE32_FUNCTION, __LINE__); sqrtNum = INT_MAX; }