From eb291d1c427ad057c2288d010ccd099cfd2b777d Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Sun, 30 Jan 2011 11:25:40 +0100 Subject: remove variable Open_Underground_Palace_Barrier use FLAGS variable at bit FLAG_OPENED_UNDERGROUND which is defined in const.txt --- npc/functions/clear_vars.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'npc/functions') diff --git a/npc/functions/clear_vars.txt b/npc/functions/clear_vars.txt index ae83968f..4b3b2f14 100644 --- a/npc/functions/clear_vars.txt +++ b/npc/functions/clear_vars.txt @@ -94,6 +94,11 @@ function script ClearVariables { set Xmas2010, 0; set Golbenez_Inn_Cost, 0; + + //These lines are needed to migrate stuff from variables to flags + if (Open_Underground_Palace_Barrier) set FLAGS, FLAGS | FLAG_OPENED_UNDERGROUND; + set Open_Underground_Palace_Barrier, 0; + if (#BankAccount < 0) goto FixBank; return; -- cgit v1.2.3-60-g2f50