]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/trigger/jumppads.qc
Add an argument to SetMovedir
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / trigger / jumppads.qc
index 0695811e0f4143cb95567923700fd3719825b771..7e25751bba7a70309abd64279fdfad7a6437f388 100644 (file)
@@ -1,6 +1,5 @@
 // TODO: split target_push and put it in the target folder
 #ifdef SVQC
-#include "../../../server/_all.qh"
 #include "jumppads.qh"
 #include "../../movetypes/movetypes.qh"
 
@@ -365,7 +364,7 @@ void trigger_push_link()
  */
 spawnfunc(trigger_push)
 {
-       SetMovedir ();
+       SetMovedir(self);
 
        EXACTTRIGGER_INIT;
 
@@ -387,8 +386,8 @@ spawnfunc(trigger_push)
 }
 
 
-float target_push_send(entity to, float sf)
-{SELFPARAM();
+bool target_push_send(entity this, entity to, float sf)
+{
        WriteByte(MSG_ENTITY, ENT_CLIENT_TARGET_PUSH);
 
        WriteByte(MSG_ENTITY, self.cnt);