From 5783c4b03e735f73902225e46eaf77791dc590a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Thu, 13 May 2021 21:53:22 +0200 Subject: [PATCH] eliminate debug move delay --- code/game/source/debug_ui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/source/debug_ui.c b/code/game/source/debug_ui.c index d6111db..caff384 100644 --- a/code/game/source/debug_ui.c +++ b/code/game/source/debug_ui.c @@ -184,8 +184,8 @@ void debug_draw(void) { // NOTE(zaklaus): move debug ui if (is_handle_ctrl_held) { - debug_xpos = GetMouseX() - DBG_CTRL_HANDLE_DIM/2; - debug_ypos = GetMouseY() - DBG_CTRL_HANDLE_DIM/2; + debug_xpos = xpos = GetMouseX() - DBG_CTRL_HANDLE_DIM/2; + debug_ypos = ypos = GetMouseY() - DBG_CTRL_HANDLE_DIM/2; if (area == DAREA_PRESS) { is_handle_ctrl_held = 0;