Server: Add serverinfo set for skyname into worldspawn... I must have been on drugs or something
This commit is contained in:
parent
d3cfedaab2
commit
71f7e024c9
1 changed files with 8 additions and 8 deletions
|
@ -460,14 +460,6 @@ initents(void)
|
|||
* let's add our own that we can actually trust. */
|
||||
forceinfokey(world, "sv_playerslots", cvar_string("sv_playerslots"));
|
||||
|
||||
/* Set the default sky */
|
||||
if (serverkeyfloat("*bspversion") == BSPVER_HL) {
|
||||
if (!self.skyname) {
|
||||
self.skyname = "desert";
|
||||
}
|
||||
forceinfokey(world, "skyname", self.skyname);
|
||||
}
|
||||
|
||||
Plugin_InitEnts();
|
||||
Mapcycle_Init();
|
||||
Vote_Init();
|
||||
|
@ -507,6 +499,14 @@ worldspawn(void)
|
|||
|
||||
if (autocvar_sv_levelexec)
|
||||
readcmd(sprintf("exec maps/%s.cfg\n", mapname));
|
||||
|
||||
/* Set the default sky */
|
||||
if (serverkeyfloat("*bspversion") == BSPVER_HL) {
|
||||
if (!self.skyname) {
|
||||
self.skyname = "desert";
|
||||
}
|
||||
forceinfokey(world, "skyname", self.skyname);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue