Client: add return to exit early when skyPath isn't set, solely to avoid an unnecessary print.
This commit is contained in:
parent
7b09f7cbc4
commit
fea60cd435
1 changed files with 4 additions and 1 deletions
|
@ -26,7 +26,7 @@ Sky_Update(int force)
|
|||
g_strSkyName = serverkey("skyname");
|
||||
skyPrefix = substring(g_strSkyName, 0, 4);
|
||||
|
||||
print(sprintf("SKY PREFIX: %S\n", skyPrefix));
|
||||
//print(sprintf("SKY PREFIX: %S\n", skyPrefix));
|
||||
|
||||
/* is it a Source Engine material? */
|
||||
if (skyPrefix == "sky_") {
|
||||
|
@ -35,6 +35,9 @@ Sky_Update(int force)
|
|||
skyPath = g_strSkyName;
|
||||
}
|
||||
|
||||
if not (skyPath)
|
||||
return;
|
||||
|
||||
localcmd(sprintf("sky \"%s\"\n", skyPath));
|
||||
print(sprintf("sky update applying %s.\n", skyPath));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue