]> git.jsancho.org Git - lugaru.git/blobdiff - Source/GameTick.cpp
Made filepaths use ConvertFileName(), so it works on Windows compiled with MinGW
[lugaru.git] / Source / GameTick.cpp
index 670bdcfecd3097cf5d42e359b91eb3d4d831a321..e247d5333a23f324f6aad9576609f5729d720c1d 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);