correct for towns version

svn-id: r10602
This commit is contained in:
Jonathan Gray 2003-10-05 06:38:07 +00:00
parent b831c5cf53
commit b37853b713

View File

@ -1378,12 +1378,15 @@ load_game:
gdi.clearCharsetMask(); gdi.clearCharsetMask();
_charset->_hasMask = false; _charset->_hasMask = false;
// HACK as in game save stuff isn't supported currently
if (_gameId == GID_LOOM || _gameId == GID_LOOM256) { if (_gameId == GID_LOOM || _gameId == GID_LOOM256) {
int args = 2; int args = 2;
uint value = (_gameId == GID_LOOM256) ? 150 : 100; uint value = (_gameId == GID_LOOM256) ? 150 : 100;
byte restoreScript = (_features & GF_FMTOWNS) ? 17 : 18;
redrawVerbs(); redrawVerbs();
// if verbs should be shown restore them
if (VAR(value) == 2) if (VAR(value) == 2)
runScript(18, 0, 0, &args); runScript(restoreScript, 0, 0, &args);
} else if (_version > 3) { } else if (_version > 3) {
for (int i = 0; i < _maxVerbs; i++) for (int i = 0; i < _maxVerbs; i++)
drawVerb(i, 0); drawVerb(i, 0);