SCUMM: Read the "enable_enhancements" setting only once

I can't change during gameplay, it's shorter to type, and we won't
accidentally involve the config manater in some tight loop.
This commit is contained in:
Torbjörn Andersson 2022-03-20 10:50:47 +01:00 committed by Torbjörn Andersson
parent afb807599b
commit cb561f462e
8 changed files with 18 additions and 17 deletions

View file

@ -68,7 +68,7 @@ void ScummEngine::printString(int m, const byte *msg) {
vm.slot[_currentScript].number == 203 &&
_actorToPrintStrFor == 255 && strcmp((const char *)msg, " ") == 0 &&
getOwner(200) == VAR(VAR_EGO) && VAR(VAR_HAVE_MSG) &&
ConfMan.getBool("enable_enhancements")) {
_enableEnhancements) {
return;
}