Mercurial > hg > batmud > gmap2
changeset 251:cd489f20cf9d gmap2
Move check for worldconfig later, we need to fetch maputils & co before that.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 17 Mar 2014 23:53:38 +0200 |
parents | ee5492ccba8e |
children | 1e1b3d986bfc |
files | tools/makegmaps.php |
diffstat | 1 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/makegmaps.php Mon Mar 17 21:55:20 2014 +0200 +++ b/tools/makegmaps.php Mon Mar 17 23:53:38 2014 +0200 @@ -298,15 +298,6 @@ // -// Include continent and tradelane configuration -// -if (!file_exists($cfg["worldConfig"])) - die("Required continent/tradelane configuration file '".$cfg["worldConfig"]."' not found.\n"); - -require $cfg["worldConfig"]; - - -// // Create htaccess files // stMakeHtAccessFile($cfg["urlTilePrefix"], $cfg["pathTileData"], ""); @@ -356,6 +347,15 @@ // +// Include continent and tradelane configuration +// +if (!file_exists($cfg["worldConfig"])) + die("Required continent/tradelane configuration file '".$cfg["worldConfig"]."' not found.\n"); + +require $cfg["worldConfig"]; + + +// // Generate continents JavasScript data file /// echo "* Generating $worldJS ...\n";