Client: add return to exit early when skyPath isn't set, solely to avoid an unnecessary print.

This commit is contained in:
Marco Cawthorne 2024-01-15 15:44:46 -08:00
parent 7b09f7cbc4
commit fea60cd435
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 4 additions and 1 deletions

View File

@ -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));
}