AGI: Rename WINDOWRESET to WINDOW_AUTO_CLOSE_TIMER

This commit is contained in:
Martin Kiewitz 2016-02-03 04:17:15 +01:00
parent 3eebf2eb41
commit d23871fdd8
2 changed files with 3 additions and 3 deletions

View File

@ -267,7 +267,7 @@ enum {
VM_VAR_AGI_ERROR_INFO, // 18
VM_VAR_KEY, // 19
VM_VAR_COMPUTER, // 20
VM_VAR_WINDOW_RESET, // 21
VM_VAR_WINDOW_AUTO_CLOSE_TIMER, // 21
VM_VAR_SOUNDGENERATOR, // 22
VM_VAR_VOLUME, // 23
VM_VAR_MAX_INPUT_CHARACTERS, // 24

View File

@ -351,7 +351,7 @@ bool TextMgr::messageBox(const char *textPtr) {
_vm->nonBlockingText_Forget();
// timed window
uint32 windowTimer = _vm->getVar(VM_VAR_WINDOW_RESET);
uint32 windowTimer = _vm->getVar(VM_VAR_WINDOW_AUTO_CLOSE_TIMER);
debugC(3, kDebugLevelText, "blocking window v21=%d", windowTimer);
windowTimer = windowTimer * 10; // 1 = 0.5 seconds
@ -373,7 +373,7 @@ bool TextMgr::messageBox(const char *textPtr) {
_vm->inGameTimerResetPassedCycles();
_vm->setVar(VM_VAR_WINDOW_RESET, 0);
_vm->setVar(VM_VAR_WINDOW_AUTO_CLOSE_TIMER, 0);
closeWindow();
_vm->_noSaveLoadAllowed = false;