fix worldspawn sky keys in NQ.

sky/skyname/qlsky rather than sky/skyname/skyname :)
This commit is contained in:
Jeff Teunissen 2010-12-28 15:03:58 -05:00
parent 9f596df607
commit ec11282a33

View file

@ -133,9 +133,9 @@ CL_LoadSky (void)
R_LoadSkys (0);
return;
}
if ((item = PL_ObjectForKey (cl.worldspawn, "sky"))
|| (item = PL_ObjectForKey (cl.worldspawn, "skyname"))
|| (item = PL_ObjectForKey (cl.worldspawn, "skyname"))) {
if ((item = PL_ObjectForKey (cl.worldspawn, "sky")) // Q2/DarkPlaces
|| (item = PL_ObjectForKey (cl.worldspawn, "skyname")) // old QF
|| (item = PL_ObjectForKey (cl.worldspawn, "qlsky"))) /* QuakeLives */ {
name = PL_String (item);
}
R_LoadSkys (name);