mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
DIRECTOR: Only use kCastMemberSprite when cast member exists
The default sprite type for an empty channel in Director is kInactiveSprite; make sure this is used as some scripts depend on it. Fixes being unable to summon the drum in Eastern Mind.
This commit is contained in:
@@ -460,7 +460,7 @@ void Sprite::setCast(CastMemberID memberID) {
|
||||
_castId = memberID;
|
||||
_cast = _movie->getCastMember(_castId);
|
||||
//As QDShapes don't have an associated cast, we must not change their _SpriteType.
|
||||
if (g_director->getVersion() >= 400 && !isQDShape())
|
||||
if (g_director->getVersion() >= 400 && !isQDShape() && _castId != CastMemberID(0, 0))
|
||||
_spriteType = kCastMemberSprite;
|
||||
|
||||
if (_cast) {
|
||||
|
||||
Reference in New Issue
Block a user