diff options
author | rubidium <rubidium@openttd.org> | 2009-11-09 16:07:03 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-09 16:07:03 +0000 |
commit | 88a7e238974e8de608ebdb6191e3d34ce25da44e (patch) | |
tree | c5f14ce7a2df826bbde3f6aa7924b0fafd404be4 /src/video/allegro_v.cpp | |
parent | cbf4b80b86a3fec2e8021e618fd828e9953c464b (diff) | |
download | openttd-88a7e238974e8de608ebdb6191e3d34ce25da44e.tar.xz |
(svn r18031) -Codechange: since basically r7157 adding up 'all' mouse movement isn't needed anymore because after each even that movement is handled and the counter is reset. As such simply assigning instead of adding works.
Diffstat (limited to 'src/video/allegro_v.cpp')
-rw-r--r-- | src/video/allegro_v.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video/allegro_v.cpp b/src/video/allegro_v.cpp index 542422aef..4dc588159 100644 --- a/src/video/allegro_v.cpp +++ b/src/video/allegro_v.cpp @@ -379,8 +379,8 @@ static void PollEvent() int dy = mouse_y - _cursor.pos.y; if (dx != 0 || dy != 0) { if (_cursor.fix_at) { - _cursor.delta.x += dx; - _cursor.delta.y += dy; + _cursor.delta.x = dx; + _cursor.delta.y = dy; position_mouse(_cursor.pos.x, _cursor.pos.y); } else { _cursor.delta.x = dx; |