mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 03:10:22 +00:00
SCI: only use xLast/yLast in kDoBresen for sci1middle+ only. qfg1 ega has those selector names, but doesn't use them inside mover objects
svn-id: r50933
This commit is contained in:
parent
3473e8c6da
commit
5356a61338
@ -267,10 +267,12 @@ reg_t kDoBresen(EngineState *s, int argc, reg_t *argv) {
|
||||
bdelta = (int16)readSelectorValue(segMan, mover, SELECTOR(b_incr));
|
||||
axis = (int16)readSelectorValue(segMan, mover, SELECTOR(b_xAxis));
|
||||
|
||||
if (SELECTOR(xLast) != -1) {
|
||||
// Introduced SCI1MIDDLE (it seems) - save last position into mover
|
||||
writeSelectorValue(segMan, mover, SELECTOR(xLast), x);
|
||||
writeSelectorValue(segMan, mover, SELECTOR(yLast), y);
|
||||
if ((getSciVersion() >= SCI_VERSION_1_MIDDLE)) {
|
||||
if (SELECTOR(xLast) != -1) {
|
||||
// Introduced SCI1MIDDLE (it seems) - save last position into mover
|
||||
writeSelectorValue(segMan, mover, SELECTOR(xLast), x);
|
||||
writeSelectorValue(segMan, mover, SELECTOR(yLast), y);
|
||||
}
|
||||
}
|
||||
|
||||
//printf("movecnt %d, move speed %d\n", movcnt, max_movcnt);
|
||||
|
Loading…
Reference in New Issue
Block a user