diff options
author | Stefan Beller <stefanbeller@googlemail.com> | 2011-01-30 11:25:40 +0100 |
---|---|---|
committer | Stefan Beller <stefanbeller@googlemail.com> | 2011-01-30 11:27:18 +0100 |
commit | eb291d1c427ad057c2288d010ccd099cfd2b777d (patch) | |
tree | 101024cfc63fdfb7dab0f7e3058bffec21d1eb03 /npc/functions | |
parent | 48e90bbaea12cce03838616f5969c126dd9b0ea1 (diff) | |
download | serverdata-eb291d1c427ad057c2288d010ccd099cfd2b777d.tar.gz serverdata-eb291d1c427ad057c2288d010ccd099cfd2b777d.tar.bz2 serverdata-eb291d1c427ad057c2288d010ccd099cfd2b777d.tar.xz serverdata-eb291d1c427ad057c2288d010ccd099cfd2b777d.zip |
remove variable Open_Underground_Palace_Barrier
use FLAGS variable at bit FLAG_OPENED_UNDERGROUND
which is defined in const.txt
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/clear_vars.txt | 5 |
1 files changed, 5 insertions, 0 deletions
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; |