]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/antilag.qh
Port ping, ping_packetloss and ping_movementloss to ClientState
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / antilag.qh
index bb9fe805268f3466d4711bd02215957f7600121d..6cf392eed5ae1e8bd2bc125b3a19aa5b9e70d6dd 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef ANTILAG_H
-#define ANTILAG_H
+#pragma once
 
 void antilag_record(entity e, entity store, float t);
 vector antilag_takebackorigin(entity e, entity store, float t);
@@ -9,6 +8,5 @@ void antilag_clear(entity e, entity store);
 
 .float antilag_debug;
 
-#define ANTILAG_LATENCY(e) min(0.4, e.ping * 0.001)
+#define ANTILAG_LATENCY(e) min(0.4, CS(e).ping * 0.001)
 // add one ticrate?
-#endif