diff options
Diffstat (limited to 'engines/cge/mouse.cpp')
-rw-r--r-- | engines/cge/mouse.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/engines/cge/mouse.cpp b/engines/cge/mouse.cpp index 9bb9626deb..601d02999f 100644 --- a/engines/cge/mouse.cpp +++ b/engines/cge/mouse.cpp @@ -167,13 +167,8 @@ void MOUSE::Tick(void) { Hold = e.Ptr; if (Hold) { Hold->Flags.Hold = true; -#ifndef DEBUG - if (Hold->Flags.Drag) -#endif - { - hx = e.X - Hold->X; - hy = e.Y - Hold->Y; - } + hx = e.X - Hold->X; + hy = e.Y - Hold->Y; } } @@ -192,10 +187,7 @@ void MOUSE::Tick(void) { EvtTail = (EvtTail + 1) % EVT_MAX; } if (Hold) -#ifndef DEBUG - if (Hold->Flags.Drag) -#endif - Hold->Goto(X - hx, Y - hy); + Hold->Goto(X - hx, Y - hy); } } // End of namespace CGE |