]> git.jsancho.org Git - lugaru.git/blobdiff - Source/GameTick.cpp
Replacing the headers yet again, this time from Mesa 7.8.1
[lugaru.git] / Source / GameTick.cpp
index 670bdcfecd3097cf5d42e359b91eb3d4d831a321..f162cf2eb0dc67c66fc0d79be2dfee07043f3db1 100644 (file)
@@ -883,9 +883,12 @@ void       Game::Loadlevel(char *name){
        OPENAL_SetPaused(channels[whooshsound], true);
        OPENAL_SetPaused(channels[stream_firesound], true);
 
+       // Change the map filename into something that is os specific
+       char *FixedFN = ConvertFileName(name);
+
        int mapvers;
        FILE                    *tfile;
-       tfile=fopen( name, "rb" );
+       tfile=fopen( FixedFN, "rb" );
        if(tfile)
        {
                OPENAL_SetPaused(channels[stream_firesound], true);
@@ -3458,7 +3461,7 @@ void      Game::Tick()
 
 
                                                                FILE                    *tfile;
-                                                               tfile=fopen( mapname, "wb" );
+                                                               tfile=fopen( ConvertFileName(mapname), "wb" );
                                                                fpackf(tfile, "Bi", mapvers);
                                                                //fpackf(tfile, "Bi", indemo);
                                                                fpackf(tfile, "Bi", maptype);