From 2e8d203ed4086f8175f29f553c51acf82757a847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Sun, 4 Sep 2022 13:02:31 +0200 Subject: [PATCH] Fix editor value selector not allowing minimal value change For example, when the scale is 1, changing the value by exactly 1 was not possible. --- src/game/editor/editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/editor/editor.cpp b/src/game/editor/editor.cpp index 1448f7c5d..e7208fff3 100644 --- a/src/game/editor/editor.cpp +++ b/src/game/editor/editor.cpp @@ -605,7 +605,7 @@ int CEditor::UiDoValueSelector(void *pID, CUIRect *pRect, const char *pLabel, in else s_Value += m_MouseDeltaX; - if(absolute(s_Value) > Scale) + if(absolute(s_Value) >= Scale) { int Count = (int)(s_Value / Scale); s_Value = fmod(s_Value, Scale);