diff options
| author | Jonathan Gray | 2003-06-12 16:38:43 +0000 | 
|---|---|---|
| committer | Jonathan Gray | 2003-06-12 16:38:43 +0000 | 
| commit | aabfc254c1ad35b796b2780e76280508882df98c (patch) | |
| tree | 112c9043bf801fe44bfc2a99906b6fca3b8b8a2e /scumm/script.cpp | |
| parent | 01cb6e2ab9aa8270b7116782898a386f13b67036 (diff) | |
| download | scummvm-rg350-aabfc254c1ad35b796b2780e76280508882df98c.tar.gz scummvm-rg350-aabfc254c1ad35b796b2780e76280508882df98c.tar.bz2 scummvm-rg350-aabfc254c1ad35b796b2780e76280508882df98c.zip | |
rework loom subtitle option handing
svn-id: r8448
Diffstat (limited to 'scumm/script.cpp')
| -rw-r--r-- | scumm/script.cpp | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/scumm/script.cpp b/scumm/script.cpp index eb62fc03a7..705fde679e 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -475,6 +475,10 @@ int Scumm::readVar(uint var) {  			var = 266;  		}  #endif +		if (_gameId == GID_LOOM256 && var == VAR_NOSUBTITLES) { +			return _noSubtitles;	 +		} +		  		checkRange(_numVariables - 1, 0, var, "Variable %d out of range(r)");  		return _scummVars[var];  	} @@ -529,6 +533,10 @@ void Scumm::writeVar(uint var, int value) {  		else  			_scummVars[var] = value; +		// stay in sync with loom cd subtitle var +		if (_gameId == GID_LOOM256 && var == VAR_NOSUBTITLES && (value == 0 || value == 1)) +			_noSubtitles = value; +  		if ((_varwatch == (int)var) || (_varwatch == 0)) {  			if (vm.slot[_currentScript].number < 100)  				debug(1, "vars[%d] = %d (via script-%d)", var, value, vm.slot[_currentScript].number); | 
