Commit 8fe08e4d authored by dylan grafmyre's avatar dylan grafmyre
Browse files

option to disable navgent

parent 19013409
......@@ -177,6 +177,9 @@ maps/%.bsp: %.bsp
rm -i "$(MOD_DIR)/mapsrc/setphys.vmf"
%.nav: %.bsp
ifeq ($(NAV),0)
echo "user disabled nav gen via NAV=0"
rm -v "$(MOD_DIR)/maps/navgen.bsp" || true
cp -v "$^" "$(MOD_DIR)/maps/navgen.bsp"
mkdir -p "$(MOD_DIR)/data/"
......@@ -197,6 +200,7 @@ maps/%.bsp: %.bsp
mkdir -p maps/graphs
cp -v "$(MOD_DIR)/maps/graphs/navgen.ain" $(basename $@).ain
rm -v "$(MOD_DIR)/maps/graphs/navgen.ain"
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment