diff --git a/client.qc b/client.qc index c3e9be0..5f084c3 100644 --- a/client.qc +++ b/client.qc @@ -1049,7 +1049,7 @@ void() LoadNextMap = local string cyc; local float desc; local float mapcount; - local string map; + local string map = ""; nextlevel = GetNextMapNum(); nextlevel = nextlevel + 1; // next level diff --git a/sbitems.qc b/sbitems.qc index d727d4c..41438f6 100644 --- a/sbitems.qc +++ b/sbitems.qc @@ -370,7 +370,7 @@ void() MotionSensorIdle = float() MotionSensorFindTarget = { - local entity client; + local entity client = world; local float r, gotone, loopc; // Try a few checks to make it react faster diff --git a/security.qc b/security.qc index 5a85033..8b292bc 100644 --- a/security.qc +++ b/security.qc @@ -32,7 +32,7 @@ void() Security_Camera_Idle = //======== float() Security_Camera_FindTarget = { - local entity client; + local entity client = world; local float r, gotone, loopc; if (self.is_malfunctioning & SCREWUP_TWO) // SB how tragic, camera can't see @@ -103,7 +103,7 @@ float() Security_Camera_FindTarget = float() Security_Camera_FindFakeTarget = { - local entity client; + local entity client = world; local float r, gotone, loopc; if (self.is_malfunctioning & SCREWUP_THREE) // SB how tragic, camera can't see diff --git a/sentry.qc b/sentry.qc index 1c98deb..68c3583 100644 --- a/sentry.qc +++ b/sentry.qc @@ -249,7 +249,7 @@ float() Sentry_FindTarget = if (infokey(world,"ceasefire")=="on") return FALSE; - local entity client; + local entity client = world; local float r, gotone, loopc; //WK Hack to get floating sentry working