SERVER: Fix func_door_nzp trying precaches on restart

This commit is contained in:
cypress 2023-12-24 12:14:10 -05:00
parent c5a4014181
commit d4380d8bab
1 changed files with 13 additions and 13 deletions

View File

@ -648,8 +648,8 @@ void() func_door_nzp =
self.blocked = door_blocked; self.blocked = door_blocked;
self.use = door_use; self.use = door_use;
if (self.cost) if (!roundinit) {
{ if (self.cost) {
self.classname = "door_nzp_cost"; self.classname = "door_nzp_cost";
precache_sound("sounds/misc/ching.wav"); precache_sound("sounds/misc/ching.wav");
switch(self.sounds) switch(self.sounds)
@ -658,9 +658,9 @@ void() func_door_nzp =
case 2: precache_sound("sounds/misc/debris.wav"); break; case 2: precache_sound("sounds/misc/debris.wav"); break;
default: break; default: break;
} }
} } else
else
self.classname = "door_nzp"; self.classname = "door_nzp";
}
if (!self.speed) if (!self.speed)
self.speed = 100; self.speed = 100;