fix autogeneration of mapinfo with cdtrack
authorRudolf Polzer <divverent@alientrap.org>
Fri, 15 Oct 2010 17:10:13 +0000 (19:10 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 15 Oct 2010 17:10:13 +0000 (19:10 +0200)
qcsrc/common/mapinfo.qc

index 10b594320434f2d0bae15925d23063ac0537fcd1..835c58f64aec6baea33a728a6f97cded2194650d 100644 (file)
@@ -699,7 +699,7 @@ float MapInfo_Get_ByName(string pFilename, float pAllowGenerate, float pGametype
                        else
                                fputs(fh, strcat("cdtrack ", _MapInfo_Map_worldspawn_music, "\n"));
                }
-               else if(_MapInfo_Map_worldspawn_music)
+               else
                {
                        n = tokenize_console(cvar_string("g_cdtracks_remaplist"));
                        s = strcat(" ", cvar_string("g_cdtracks_dontusebydefault"), " ");