aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2018-12-03 19:32:40 -0800
committerPaul Gilbert2018-12-08 19:05:59 -0800
commit1933130dfcc417c96e0dfd5eadee68833daf0821 (patch)
treeb92d3603a65e41415e8b04da83da7762126817b7 /engines
parent7212924b1ead017b4c769ca4fb8cdad6bf95e78e (diff)
downloadscummvm-rg350-1933130dfcc417c96e0dfd5eadee68833daf0821.tar.gz
scummvm-rg350-1933130dfcc417c96e0dfd5eadee68833daf0821.tar.bz2
scummvm-rg350-1933130dfcc417c96e0dfd5eadee68833daf0821.zip
GLK: FROTZ: Fix setting cwin field when window changes
Diffstat (limited to 'engines')
-rw-r--r--engines/glk/frotz/processor_screen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/glk/frotz/processor_screen.cpp b/engines/glk/frotz/processor_screen.cpp
index 6a518cf525..6627bf672d 100644
--- a/engines/glk/frotz/processor_screen.cpp
+++ b/engines/glk/frotz/processor_screen.cpp
@@ -396,9 +396,9 @@ void Processor::z_set_text_style() {
}
void Processor::z_set_window() {
- int win = zargs[0];
+ cwin = zargs[0];
- if (win == 0) {
+ if (cwin == 0) {
glk_set_window(gos_lower);
gos_curwin = gos_lower;
} else {
@@ -407,7 +407,7 @@ void Processor::z_set_window() {
gos_curwin = gos_upper;
}
- if (win == 0)
+ if (cwin == 0)
enable_scripting = true;
else
enable_scripting = false;