Don't try to load skys named "".

This makes 'loadsky ""' and 'loadsky none' equivalent.
This commit is contained in:
Bill Currie 2010-12-10 14:40:13 +09:00
parent 9ba70884c5
commit 6114495870

View file

@ -119,7 +119,7 @@ R_LoadSkys (const char *skyname)
if (!skyname || !*skyname) if (!skyname || !*skyname)
skyname = r_skyname->string; skyname = r_skyname->string;
if (strcasecmp (skyname, "none") == 0) { if (!*skyname || strcasecmp (skyname, "none") == 0) {
skyloaded = false; skyloaded = false;
return; return;
} }