Variable _oneClick is a byte, so we can't compare it to boolean true/false
svn-id: r39229
This commit is contained in:
parent
52f3b24668
commit
ca2c1b35b4
1 changed files with 3 additions and 3 deletions
|
@ -572,7 +572,7 @@ void AGOSEngine::handleMouseMoved() {
|
|||
if (_dragMode != 0) {
|
||||
_dragEnd = 1;
|
||||
} else {
|
||||
_oneClick = true;
|
||||
_oneClick = 1;
|
||||
}
|
||||
_dragCount = 0;
|
||||
}
|
||||
|
@ -604,8 +604,8 @@ void AGOSEngine::handleMouseMoved() {
|
|||
}
|
||||
|
||||
x = 0;
|
||||
if (_oneClick == true) {
|
||||
_oneClick = false;
|
||||
if (_oneClick > 0) {
|
||||
_oneClick = 0;
|
||||
x = 1;
|
||||
} else {
|
||||
if (_litBoxFlag == 0 && _needHitAreaRecalc == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue