Remove duplicate code, for clipping of mouse position.

svn-id: r26238
This commit is contained in:
Travis Howell 2007-03-19 00:24:58 +00:00
parent 96823c885f
commit 3e85ecbe5f

View File

@ -309,21 +309,8 @@ void AGOSEngine::handleMouseMoved() {
}
CursorMan.showMouse(true);
_mouse = _system->getEventManager()->getMousePos();
// Clip the mouse to the screen
// TODO this should not be necessary
if (_mouse.x <= 0)
_mouse.x = 0;
if (_mouse.x >= _screenWidth - 1)
_mouse.x = _screenWidth - 1;
if (_mouse.y <= 0)
_mouse.y = 0;
if (_mouse.y >= _screenHeight - 1)
_mouse.y = _screenHeight - 1;
if (_defaultVerb) {
uint id = 101;
if (_mouse.y >= 136)