mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-17 15:18:11 +00:00
DIRECTOR: Don't override shape dimensions
This commit is contained in:
parent
0bab9810c0
commit
828595c9fc
@ -183,9 +183,13 @@ void Sprite::setCast(uint16 castId) {
|
||||
((TextCastMember *)_cast)->_buttonType = (ButtonType)(_spriteType - 8);
|
||||
}
|
||||
|
||||
Common::Rect dims = _cast->getInitialRect();
|
||||
_width = dims.width();
|
||||
_height = dims.height();
|
||||
// TODO: Respect sprite width/height settings. Need to determine how to read
|
||||
// them properly.
|
||||
if (_cast->_type != kCastShape) {
|
||||
Common::Rect dims = _cast->getInitialRect();
|
||||
_width = dims.width();
|
||||
_height = dims.height();
|
||||
}
|
||||
} else {
|
||||
warning("Sprite::setCast(): CastMember id %d(%s) has null member", castId, numToCastNum(castId));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user