From 21a31c7a51bd774a200b4a38779f97cb82309430 Mon Sep 17 00:00:00 2001 From: James R Date: Sat, 8 Apr 2023 00:37:12 -0700 Subject: [PATCH] devmode: offset with showfps and showping --- src/st_stuff.c | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/st_stuff.c b/src/st_stuff.c index 6c66d069d..9f4ff882f 100644 --- a/src/st_stuff.c +++ b/src/st_stuff.c @@ -446,15 +446,25 @@ void ST_drawDebugInfo(void) if (!stplyr->mo) return; + if (cv_ticrate.value) + { + height -= 20; + } + + if (cv_showping.value) + { + height -= 20; + } + if (cht_debug & DBG_BASIC) { const fixed_t d = AngleFixed(stplyr->mo->angle); - V_DrawRightAlignedString(320, 168, V_MONOSPACE, va("X: %6d", stplyr->mo->x>>FRACBITS)); - V_DrawRightAlignedString(320, 176, V_MONOSPACE, va("Y: %6d", stplyr->mo->y>>FRACBITS)); - V_DrawRightAlignedString(320, 184, V_MONOSPACE, va("Z: %6d", stplyr->mo->z>>FRACBITS)); - V_DrawRightAlignedString(320, 192, V_MONOSPACE, va("A: %6d", FixedInt(d))); + V_DrawRightAlignedString(320, height - 24, V_MONOSPACE, va("X: %6d", stplyr->mo->x>>FRACBITS)); + V_DrawRightAlignedString(320, height - 16, V_MONOSPACE, va("Y: %6d", stplyr->mo->y>>FRACBITS)); + V_DrawRightAlignedString(320, height - 8, V_MONOSPACE, va("Z: %6d", stplyr->mo->z>>FRACBITS)); + V_DrawRightAlignedString(320, height, V_MONOSPACE, va("A: %6d", FixedInt(d))); - height = 152; + height -= 40; } if (cht_debug & DBG_DETAILED)