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; }