]> git.mxchange.org Git - quix0rs-blobwars.git/commitdiff
Chdir() to the data directory when RELEASE is #defined.
authorGuus Sliepen <guus@debian.org>
Mon, 14 Feb 2011 15:14:24 +0000 (16:14 +0100)
committerGuus Sliepen <guus@debian.org>
Mon, 14 Feb 2011 15:14:24 +0000 (16:14 +0100)
This ensures an installed version of Blobwars can find the data files if it is
not in a .pak file.

src/main.cpp

index 6a4d6b8ac5d73e53fb2930fe7b1ea4cd00bc1bfb..c7f0f2ca4f64a281a9f7e7eccd53f01979632db6 100644 (file)
@@ -102,6 +102,10 @@ int main(int argc, char *argv[])
        #if !USEPAK
        debug(("Not Using PAK...\n"));
        #endif
+
+       #if RELEASE
+       chdir(PAKLOCATION);
+       #endif
        
        config.engine = &engine;