mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-05 00:36:57 +00:00
DIRECTOR: Set sprite _startPoint
when setting location
Initially, all the changes to sprite location (ie set the locH..) was being assigned to _currentPoint, which is not carried over to sprite, thus the changes were not being applied. Fixes bullet not showing when firing gun in --start-movie="ATD\HD\bdDREAMA.DXR" totaldistortion-win
This commit is contained in:
parent
59f0433c5a
commit
994d284d71
@ -595,6 +595,7 @@ void Channel::setPosition(int x, int y, bool force) {
|
||||
newPos.y = MIN(constraintBbox.bottom, MAX(constraintBbox.top, newPos.y));
|
||||
}
|
||||
_currentPoint = newPos;
|
||||
_sprite->_startPoint = _currentPoint;
|
||||
|
||||
if (!_sprite->_puppet && g_director->getVersion() >= 600) {
|
||||
// Based on Director in a Nutshell, page 15
|
||||
|
Loading…
Reference in New Issue
Block a user