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:
Harishankar Kumar 2023-07-16 17:11:25 +05:30 committed by Eugene Sandulenko
parent 59f0433c5a
commit 994d284d71

View File

@ -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