DREAMWEB: Finish off useObject()
This commit is contained in:
parent
f2829a6a6c
commit
bb14626630
1 changed files with 5 additions and 11 deletions
|
@ -880,16 +880,10 @@ void DreamGenContext::useObject() {
|
||||||
commandWithOb(data.byte(kCommand), data.byte(kObjecttype), 51);
|
commandWithOb(data.byte(kCommand), data.byte(kObjecttype), 51);
|
||||||
}
|
}
|
||||||
|
|
||||||
alreadyuse:
|
if (data.word(kMousebutton) == data.word(kOldbutton))
|
||||||
ax = data.word(kMousebutton);
|
return; // nouse
|
||||||
_cmp(ax, data.word(kOldbutton));
|
|
||||||
if (flags.z())
|
if (data.word(kMousebutton) & 1)
|
||||||
return /* (nouse) */;
|
|
||||||
_and(ax, 1);
|
|
||||||
if (!flags.z())
|
|
||||||
goto douse;
|
|
||||||
return;
|
|
||||||
douse:
|
|
||||||
useRoutine();
|
useRoutine();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue