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:
parent
afb807599b
commit
cb561f462e
8 changed files with 18 additions and 17 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue