#define SUB_LTIME move_ltime
#define SUB_FLAGS move_flags
+.vector move_origin;
+
void SUB_SETORIGIN(entity s, vector v)
- {
+ {SELFPARAM();
s.move_origin = v;
- entity oldself = self;
- self = s;
- _Movetype_LinkEdict(true);
- self = oldself;
+ WITH(entity, self, s, _Movetype_LinkEdict(true));
}
#endif