Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Half-fix trap cursor, can now be enabled/disabled, but cursor isn't c…

…ompletely trapped when enabled.

Fixes ticket:2537.
  • Loading branch information...
commit 3bab8496122ecc9d8556bc92be9fbd54a489f970 1 parent 13070eb
@Cyp Cyp authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  src/keybind.cpp
View
1  src/keybind.cpp
@@ -1341,6 +1341,7 @@ void kf_toggleTrapCursor(void)
const char *msg;
bool trap = !war_GetTrapCursor();
war_SetTrapCursor(trap);
+ (trap? wzGrabMouse : wzReleaseMouse)();
sasprintf((char**)&msg, _("Trap cursor %s"), trap ? "ON" : "OFF");
addConsoleMessage(msg, DEFAULT_JUSTIFY, SYSTEM_MESSAGE);
}
Please sign in to comment.
Something went wrong with that request. Please try again.