Skip to content

Commit

Permalink
Adds a warning message when more than one map is included.
Browse files Browse the repository at this point in the history
Tweaked dm.sh to ignore this message when it sets a single map to be included.

Signed-off-by: Mloc <[email protected]>
  • Loading branch information
mloc committed Jan 13, 2014
1 parent 2f931ae commit d9174d1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion _maps/metastation.dm
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#ifndef MAP_FILE
#if !defined(MAP_FILE)

#include "map_files\MetaStation.v39A.III.dmm"

#define MAP_FILE "MetaStation.v39A.III.dmm"
#define MAP_NAME "MetaStation"

#elif !defined(MAP_OVERRIDE)

#warn a map has already been included, ignoring MetaStation.

#endif
6 changes: 5 additions & 1 deletion _maps/tgstation2.dm
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#ifndef MAP_FILE
#if !defined(MAP_FILE)

#include "map_files\tgstation.2.1.2.dmm"

#define MAP_FILE "tgstation.2.1.2.dmm"
#define MAP_NAME "/tg/station 2"

#elif !defined(MAP_OVERRIDE)

#warn a map has already been included, ignoring /tg/station 2.

#endif
1 change: 1 addition & 0 deletions dm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ do
fi
if [[ $var == -M* ]]
then
sed -i '1s/^/#define MAP_OVERRIDE\n/' $dmepath.mdme
sed -i 's!// BEGIN_INCLUDE!// BEGIN_INCLUDE\n#include "_maps\\'$arg'.dm"!' $dmepath.mdme
continue
fi
Expand Down

0 comments on commit d9174d1

Please sign in to comment.