]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/client.qc
Fix buff prediction and use PHYS_HIGHSPEED for the speed modifiers
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / client.qc
index ddbf0fd1c76d089a6b881c10011d344de7b3c3bc..9d5be4c80f3cb432d32fd3939aedd59327bbb6e8 100644 (file)
@@ -1231,6 +1231,8 @@ void ClientConnect(entity this)
                sv_notice_join(this);
 
        // update physics stats (players can spawn before physics runs)
+       STAT(MOVEVARS_HIGHSPEED, this) = autocvar_g_movement_highspeed;
+       MUTATOR_CALLHOOK(PlayerPhysics_UpdateStats, this); // do it BEFORE the function so we can modify highspeed!
        Physics_UpdateStats(this, PHYS_HIGHSPEED(this));
 
        IL_EACH(g_initforplayer, it.init_for_player, {