Revert "DIRECTOR: Add puppet check on kTheCastNum"

This reverts commit d650738f9f.

This change caused several scenes to render incorrectly (e.g. the
witches cauldron on the Chop Suey map screen).
This commit is contained in:
Scott Percival 2021-04-25 21:38:24 +08:00
parent ca0c5c800d
commit 7197d470d3

View File

@ -1279,13 +1279,6 @@ void Lingo::setTheSprite(Datum &id1, int field, Datum &d) {
{
int castId = d.asCastId();
if (castId != sprite->_castId) {
// WORKAROUND: Chop Suey cursor is not marked puppet, so it will flash
// unnecessarily on frame change unless it is puppet.
if (!sprite->_puppet) {
warning("setTheSprite(): kTheCastNum: Sprite %d not a puppet", id);
sprite->_puppet = true;
}
g_director->getCurrentWindow()->addDirtyRect(channel->getBbox());
channel->setCast(castId);
channel->_dirty = true;