SCI: Added a check for magnifier cursor multipliers

Sierra SCI only allowed multipliers 1, 2 and 4, and errored out on unexpected
values, thus we do the same

svn-id: r53072
This commit is contained in:
Filippos Karapetis 2010-10-08 13:33:54 +00:00
parent 6dcf366b7d
commit 744a1829ac

View File

@ -441,6 +441,9 @@ void GfxCursor::kernelSetZoomZone(byte multiplier, Common::Rect zone, GuiResourc
_zoomMultiplier = multiplier;
if (_zoomMultiplier != 1 && _zoomMultiplier != 2 && _zoomMultiplier != 4)
error("Unexpected zoom multiplier (expected 1, 2 or 4)");
_zoomCursorView = new GfxView(_resMan, _screen, _palette, viewNum);
_zoomCursorLoop = (byte)loopNum;
_zoomCursorCel = (byte)celNum;