From 7ce53143a6ea781bb9bd2eb29995c6d160331328 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Mon, 25 Jun 2007 19:54:59 +0000 Subject: .des files can use a global Lua prelude (before maps are defined) that runs at start of game, before any maps are loaded, and does not run in the context of any specific map. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1654 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/maps.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/maps.h') diff --git a/crawl-ref/source/maps.h b/crawl-ref/source/maps.h index 8274a957e9..91de437ffe 100644 --- a/crawl-ref/source/maps.h +++ b/crawl-ref/source/maps.h @@ -52,10 +52,11 @@ void reset_map_parser(); std::string get_descache_path(const std::string &file, const std::string &ext); -extern dlua_chunk map_file_prelude; extern std::string lc_desfile; extern map_def lc_map; extern level_range lc_range; extern depth_ranges lc_default_depths; +extern dlua_chunk lc_global_prelude; +extern bool lc_run_global_prelude; #endif -- cgit v1.2.3-54-g00ecf