]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/ecs/systems/physics.qc
Turn most cases of _STAT into STAT
[xonotic/xonotic-data.pk3dir.git] / qcsrc / ecs / systems / physics.qc
index ec97bb2a15734f9bbc7c6f3b700e752a1527f8dc..c8b459962eb0102247c4f308459d680e2965cf76 100644 (file)
@@ -48,7 +48,7 @@ void sys_phys_update(entity this, float dt)
 
        if (!IS_PLAYER(this)) {
                sys_phys_spectator_control(this);
-               maxspeed_mod = this.spectatorspeed;
+               maxspeed_mod = STAT(SPECTATORSPEED, this);
        }
        sys_phys_fixspeed(this, maxspeed_mod);