diff --git a/ai.qc b/ai.qc index 1d260be..7dc33cf 100644 --- a/ai.qc +++ b/ai.qc @@ -1040,7 +1040,7 @@ float() ShamCheckAttack; float() CheckAnyAttack = { if (!enemy_vis) - return; + return #FALSE; if (self.classname == "monster_demon1") return DemonCheckAttack (); /* else if (self.classname == "monster_army") diff --git a/airfist.qc b/airfist.qc index 11ed666..d27e409 100644 --- a/airfist.qc +++ b/airfist.qc @@ -39,7 +39,7 @@ $cd id1/progs/s_ablast $frame ablast1 ablast2 ablast3 ablast4 ablast5 ablast6 -void (entity thing) canairpush = +float (entity thing) canairpush = { if (thing.classname == "player") return #TRUE; diff --git a/pyro.qc b/pyro.qc index 370c6de..5b8177d 100644 --- a/pyro.qc +++ b/pyro.qc @@ -48,7 +48,7 @@ entity (string type, entity p_owner) FlameSpawn = if (!(RemoveFlameFromQueue(type))) { // RPrint("Create flame failed: too many\n"); - return; + return world; } } @@ -121,7 +121,7 @@ float (string id_flame) RemoveFlameFromQueue = if (num_world_flames < #FLAME_MAXWORLDNUM) { RPrint("ERROR in RemoveFlameFromQueue\n"); - return; + return #FALSE; } /* db1 = ftos(num_world_flames); diff --git a/sbitems.qc b/sbitems.qc index 0b3e4a1..a18e6b6 100644 --- a/sbitems.qc +++ b/sbitems.qc @@ -22,7 +22,7 @@ void() CameraSwitchView;*/ void() ConcussionGrenadeTouch; void() Security_Camera_Pain; -float(float tno, entity ignore, string st) teamsprint; +void(float tno, entity ignore, string st) teamsprint; void() TeamFortress_DetpackTouch; void() TeamFortress_DetpackCountDown; void() TeamFortress_DetpackExplode; diff --git a/sentry.qc b/sentry.qc index 8f99c2b..da80b38 100644 --- a/sentry.qc +++ b/sentry.qc @@ -644,7 +644,7 @@ float() Sentry_Fire = WriteCoord (#MSG_BROADCAST, self.origin_z); if (self.tf_items & #NIT_TURRET) self.origin_z = self.origin_z + 40; - return; + return #FALSE; } newmis = spawn (); diff --git a/status.qc b/status.qc index 3f37beb..2014485 100644 --- a/status.qc +++ b/status.qc @@ -764,7 +764,7 @@ string(entity pl) ClipSizeToString100 = } else if (num >= 40) return "\nãìéð:40"; - return num; + return ftos (num); }; //========== string(entity te) SentryDetailsToString = diff --git a/tesla.qc b/tesla.qc index f23a0a7..663a1a4 100644 --- a/tesla.qc +++ b/tesla.qc @@ -531,7 +531,7 @@ float() Tesla_Fire = T_RadiusDamage(self, self, damg, world); if (self.tf_items & #NIT_TURRET) self.origin_z = self.origin_z + 40; // 40 //else self.origin_z = self.origin_z - 24; - return; + return #FALSE; } deathmsg = #DMSG_TESLA; diff --git a/tfort.qc b/tfort.qc index fe30953..8747a57 100644 --- a/tfort.qc +++ b/tfort.qc @@ -2578,7 +2578,7 @@ float(entity Retriever, entity Items) TeamFortress_AddBackpackItems = // weapons, then you may want them to be able to pick up weapons // from backpacks. If so, this is where to do it. // For now, return. - return; + return 0; }; //========================================================================= diff --git a/tforttm.qc b/tforttm.qc index 011b51d..4e4e964 100644 --- a/tforttm.qc +++ b/tforttm.qc @@ -1327,7 +1327,7 @@ float(float tno) TeamFortress_TeamIsCivilian = //========================================================================= // Sprints to all the members on one team except one -float(float tno, entity ignore, string st) teamsprint = +void(float tno, entity ignore, string st) teamsprint = { // Don't do teamprints in DM if (tno == 0)