[Scummvm-git-logs] scummvm master -> d751426233156500277db0430df713e0458bc183
scemino
noreply at scummvm.org
Wed Dec 18 19:45:17 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
d751426233 TWP: Fix slow click
Commit: d751426233156500277db0430df713e0458bc183
https://github.com/scummvm/scummvm/commit/d751426233156500277db0430df713e0458bc183
Author: scemino (scemino74 at gmail.com)
Date: 2024-12-18T20:45:04+01:00
Commit Message:
TWP: Fix slow click
Changed paths:
engines/twp/twp.cpp
diff --git a/engines/twp/twp.cpp b/engines/twp/twp.cpp
index 001e1c46a41..dd0277f794c 100644
--- a/engines/twp/twp.cpp
+++ b/engines/twp/twp.cpp
@@ -349,7 +349,6 @@ void TwpEngine::clickedAt(const Math::Vector2d &scrPos) {
if (!_hud->_active && _cursor.doubleClick) {
walkFast(true);
_holdToMove = true;
- return;
}
if (_cursor.isLeftDown()) {
@@ -587,7 +586,7 @@ void TwpEngine::update(float elapsed) {
Common::String cText = !_noun1 ? "" : _textDb->getText(_noun1->getName());
_sentence.setText(cText);
_inputState.setCursorShape(CursorShape::Normal);
- if (_cursor.leftDown)
+ if (_cursor.isLeftDown() || _cursor.isRightDown())
clickedAt(scrPos);
}
}
More information about the Scummvm-git-logs
mailing list