}
if(this.lodmodelindex1)
- if (!getSendEntity(this))
+ if (!this.net_sendentity)
SetCustomizer(this, LOD_customize, LOD_uncustomize);
}
bool Net_SendEntity(entity to, int sendflags)
{
ENGINE_EVENT();
- return this.net_sendentity(this, to, sendflags);
+ return (this.net_sendentity) ? this.net_sendentity(this, to, sendflags) : false;
}
void Net_LinkEntity(entity e, bool docull, bool checkmodel, float dt, bool(entity this, entity to, int sendflags) sendfunc)
void UpdateItemAfterTeleport(entity this)
{
- if(getSendEntity(this) == ItemSend)
+ if(this.net_sendentity == ItemSend)
ItemUpdate(this);
}
void UpdateCSQCProjectile(entity e)
{
- if(getSendEntity(e) == CSQCProjectile_SendEntity)
+ if(e.net_sendentity == CSQCProjectile_SendEntity)
{
// send new origin data
e.SendFlags |= 0x01;
}
// FIXME HACK
- else if(getSendEntity(e) == ItemSend)
+ else if(e.net_sendentity == ItemSend)
{
ItemUpdate(e);
}
void UpdateCSQCProjectileAfterTeleport(entity e)
{
- if(getSendEntity(e) == CSQCProjectile_SendEntity)
+ if(e.net_sendentity == CSQCProjectile_SendEntity)
{
// send new origin data
e.SendFlags |= 0x01;