From d07ecf1404a72037ba1f85c697014b3541da851e Mon Sep 17 00:00:00 2001 From: JeodC <47716344+JeodC@users.noreply.github.com> Date: Sun, 19 May 2024 15:14:11 -0400 Subject: [PATCH] Only use standard mouse mode in debug Resolves an issue where hardware cursor was still visible in release build despite window mode being disabled for release builds. --- Descent3/init.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Descent3/init.cpp b/Descent3/init.cpp index 5b2431d1..08093fd2 100644 --- a/Descent3/init.cpp +++ b/Descent3/init.cpp @@ -1443,6 +1443,7 @@ void InitIOSystems(bool editor) { Descent->set_defer_handler(D3DeferHandler); +#ifndef RELEASE if (!editor && !FindArg("-windowed")) { if (Dedicated_server) { ddio_MouseMode(MOUSE_STANDARD_MODE); @@ -1450,6 +1451,9 @@ void InitIOSystems(bool editor) { ddio_MouseMode(MOUSE_EXCLUSIVE_MODE); } } +#else + ddio_MouseMode(MOUSE_EXCLUSIVE_MODE); +#endif // do io init stuff io_info.obj = Descent;