Skip to content

Commit

Permalink
Makes -DCOMPILE_MAPS Actually Compile All Maps (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
RimiNosha authored Jan 15, 2024
1 parent 827c777 commit 40592db
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
2 changes: 2 additions & 0 deletions BUILD_ALL_MAPS.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
call "%~dp0\tools\build\build.bat" --wait-on-error build -DALL_MAPS %*
11 changes: 1 addition & 10 deletions _maps/_basemap.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@

#ifndef LOWMEMORYMODE
#ifdef ALL_MAPS
#include "map_files\Mining\Lavaland.dmm"
#include "map_files\debug\runtimestation.dmm"
#include "map_files\debug\multiz.dmm"
#include "map_files\Deltastation\DeltaStation2.dmm"
#include "map_files\KiloStation\KiloStation.dmm"
#include "map_files\tramstation\tramstation.dmm"

#ifdef CIBUILDING
#include "templates.dm"
#endif
#include "templates.dm"
#endif
#endif
5 changes: 1 addition & 4 deletions tools/build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,7 @@ export const IconCutterTarget = new Juke.Target({
export const DmMapsIncludeTarget = new Juke.Target({
executes: async () => {
const folders = [
...Juke.glob('_maps/RandomRuins/**/*.dmm'),
...Juke.glob('_maps/RandomZLevels/**/*.dmm'),
...Juke.glob('_maps/shuttles/**/*.dmm'),
...Juke.glob('_maps/templates/**/*.dmm'),
...Juke.glob('_maps/**/*.dmm'),
];
const content = folders
.map((file) => file.replace('_maps/', ''))
Expand Down

0 comments on commit 40592db

Please sign in to comment.