Permalink
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...
Cyp committed Mar 26, 2011
1 parent 13070eb commit 3bab8496122ecc9d8556bc92be9fbd54a489f970
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/keybind.cpp
View
@@ -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);
}

0 comments on commit 3bab849

Please sign in to comment.