about summary refs log tree commit diff stats
path: root/082scenario_screen.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-08-20 17:51:58 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-08-20 17:51:58 -0700
commitbc98ddb2b699682dffb5590f9c5e5b2bf36cb278 (patch)
treea614f3c0f669d9b3129c9b0e65f0f27ce99be860 /082scenario_screen.cc
parent10f415a60a130ceefc4ce0f32155507763e6cee6 (diff)
downloadmu-bc98ddb2b699682dffb5590f9c5e5b2bf36cb278.tar.gz
3229 - fake file systems using 'assume-filesystem'
Built with Stephen Malina.
Diffstat (limited to '082scenario_screen.cc')
-rw-r--r--082scenario_screen.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/082scenario_screen.cc b/082scenario_screen.cc
index 006547f9..5443a369 100644
--- a/082scenario_screen.cc
+++ b/082scenario_screen.cc
@@ -116,10 +116,6 @@ scenario screen-in-scenario-color [
 ]
 +error: expected screen location (0, 0) to be in color 2 instead of 1
 
-//: allow naming just for 'screen'
-:(before "End is_special_name Cases")
-if (s == "screen") return true;
-
 :(scenarios run)
 :(scenario convert_names_does_not_fail_when_mixing_special_names_and_numeric_locations)
 % Scenario_testing_scenario = true;
@@ -148,8 +144,13 @@ assert(Name[tmp_recipe.at(0)][""] < Max_variables_in_scenarios);
 // Scenario Globals.
 const int SCREEN = Next_predefined_global_for_scenarios++;
 // End Scenario Globals.
+
+//: give 'screen' a fixed location in scenarios
 :(before "End Special Scenario Variable Names(r)")
 Name[r]["screen"] = SCREEN;
+//: make 'screen' always a raw location in scenarios
+:(before "End is_special_name Cases")
+if (s == "screen") return true;
 
 :(before "End Rewrite Instruction(curr, recipe result)")
 // rewrite `assume-screen width, height` to