Set inital room width and height.

Several early HE games check values, before they are set.

svn-id: r19092
This commit is contained in:
Travis Howell 2005-10-15 06:15:13 +00:00
parent 05d5bc16d2
commit b7e72737d3

View File

@ -700,6 +700,11 @@ void ScummEngine::initScummVars() {
VAR(VAR_V6_EMSSPACE) = 10000;
}
if (VAR_ROOM_WIDTH != 0xFF && VAR_ROOM_HEIGHT != 0xFF) {
VAR(VAR_ROOM_WIDTH) = _screenWidth;
VAR(VAR_ROOM_HEIGHT) = _screenHeight;
}
if (VAR_FADE_DELAY != 0xFF)
VAR(VAR_FADE_DELAY) = 3;