Nodes: Only bother saving a node .way file when we've got nodes to dump.

This commit is contained in:
Marco Cawthorne 2020-12-22 01:15:22 +01:00
parent 4cbcda6449
commit d04d2a83ef
1 changed files with 2 additions and 1 deletions

View File

@ -178,7 +178,8 @@ Nodes_Init(void)
dprint(" ^2DONE\n");
dprint(sprintf("[^2NODES^7] %i nodes found.\n", g_iNodes));
Nodes_Save(sprintf("%s.way", mapname));
if (g_iNodes)
Nodes_Save(sprintf("%s.way", mapname));
/* we don't need these any longer */
#ifndef NODE_DEBUG