NSEntity: add method ::Relink()
This commit is contained in:
parent
65400fea2c
commit
a1500166be
3 changed files with 10 additions and 0 deletions
|
@ -368,4 +368,7 @@ public:
|
|||
nonvirtual float GetSpawnTime(void);
|
||||
/** Move the entity to a new position, with updated angles. */
|
||||
nonvirtual void Transport(vector, vector);
|
||||
|
||||
/** Relink the entity against the world. Updates PVS info etc. */
|
||||
nonvirtual void Relink(void);
|
||||
};
|
|
@ -980,3 +980,9 @@ NSEntity::Transport(vector new_pos, vector new_ang)
|
|||
Client_FixAngle(this, new_ang);
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
NSEntity::Relink(void)
|
||||
{
|
||||
setorigin(this, origin);
|
||||
}
|
|
@ -48,6 +48,7 @@
|
|||
callfunction(self.classname); \
|
||||
} \
|
||||
x ##_e.ReceiveEntity( y, readfloat() );\
|
||||
x ##_e.Relink();\
|
||||
}
|
||||
#else
|
||||
|
||||
|
|
Loading…
Reference in a new issue