]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/func/plat.qc
Use set_movetype everywhere
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / func / plat.qc
index 341ca460feb28eef5bcf954e59b3f9aee7c18c30..396636e8cd214cf8c96e8f7f95b0ae90a920e192 100644 (file)
@@ -168,7 +168,7 @@ NET_HANDLE(ENT_CLIENT_PLAT, bool isnew)
 
                this.classname = "plat";
                this.solid = SOLID_BSP;
-               this.move_movetype = MOVETYPE_PUSH;
+               set_movetype(this, MOVETYPE_PUSH);
                this.drawmask = MASK_NORMAL;
                this.draw = plat_draw;
                if (isnew) IL_PUSH(g_drawables, this);
@@ -177,7 +177,7 @@ NET_HANDLE(ENT_CLIENT_PLAT, bool isnew)
 
                plat_reset(this); // also called here
 
-               this.move_movetype = MOVETYPE_PUSH;
+               set_movetype(this, MOVETYPE_PUSH);
                this.move_time = time;
 
                plat_spawn_inside_trigger(this);