]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/platforms.qc
Merge branch 'TimePath/experiments/csqc_prediction' into Mario/qc_physics
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / platforms.qc
index 03c2f0fe5d06be6ce800f910391bf17827662c60..fd4825e2faf0ae617f5f4a62a14b8c9f8a746a56 100644 (file)
@@ -32,7 +32,7 @@ float plat_trigger_send(entity to, float sf)
        WriteCoord(MSG_ENTITY, self.maxs_x);
        WriteCoord(MSG_ENTITY, self.maxs_y);
        WriteCoord(MSG_ENTITY, self.maxs_z);
-       return TRUE;
+       return true;
 }
 
 void plat_spawn_inside_trigger()
@@ -68,7 +68,7 @@ void plat_spawn_inside_trigger()
                        if(tmin_z < tmax_z)
                        {
                                setsize (trigger, tmin, tmax);
-                               Net_LinkEntity(trigger, FALSE, 0, plat_trigger_send);
+                               Net_LinkEntity(trigger, false, 0, plat_trigger_send);
                                return;
                        }
 
@@ -260,14 +260,14 @@ float set_platmovetype(entity e, string s)
 
        if(n > 2)
                if(argv(2) == "force")
-                       return TRUE; // no checking, return immediately
+                       return true; // no checking, return immediately
 
        if(!cubic_speedfunc_is_sane(e.platmovetype_start, e.platmovetype_end))
        {
                objerror("Invalid platform move type; platform would go in reverse, which is not allowed.");
-               return FALSE;
+               return false;
        }
 
-       return TRUE;
+       return true;
 }
 #endif