X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGameTick.cpp;h=f162cf2eb0dc67c66fc0d79be2dfee07043f3db1;hb=d78989724a1b2cf05ef987b4fa799fc018ac8c52;hp=670bdcfecd3097cf5d42e359b91eb3d4d831a321;hpb=4077141d40ad4cf2c77b9531580283c6e0dffcb6;p=lugaru.git diff --git a/Source/GameTick.cpp b/Source/GameTick.cpp index 670bdcf..f162cf2 100644 --- a/Source/GameTick.cpp +++ b/Source/GameTick.cpp @@ -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);