]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - fs.c
rewrote most of wad system, this eliminated 512KB of static arrays for
[xonotic/darkplaces.git] / fs.c
diff --git a/fs.c b/fs.c
index 3e6b8a821ffe83e25c3404443278024d710a4814..74329aaf779185b2c82ce6e165fa21144e357592 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -40,6 +40,7 @@
 #endif
 
 #include "fs.h"
+#include "wad.h"
 
 // Win32 requires us to add O_BINARY, but the other OSes don't have it
 #ifndef O_BINARY
@@ -1157,6 +1158,9 @@ void FS_Rescan (void)
                if (gamemode == GAME_NORMAL || gamemode == GAME_HIPNOTIC || gamemode == GAME_ROGUE)
                        Con_Print("Playing registered version.\n");
        }
+
+       // unload all wads so that future queries will return the new data
+       W_UnloadAll();
 }
 
 void FS_Rescan_f(void)