Change FX_Corpse_Spawn's header to work around a possible compiler bug that
gets triggered in cstrike.
This commit is contained in:
parent
7bfea15dd0
commit
5ea389dc71
|
@ -44,8 +44,8 @@ FX_Corpse_Next(void)
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
NSRenderableEntity
|
entity
|
||||||
FX_Corpse_Spawn(player pl)
|
FX_Corpse_Spawn(player pl, float anim)
|
||||||
{
|
{
|
||||||
NSRenderableEntity body_next = FX_Corpse_Next();
|
NSRenderableEntity body_next = FX_Corpse_Next();
|
||||||
setorigin(body_next, pl.origin + [0,0,32]);
|
setorigin(body_next, pl.origin + [0,0,32]);
|
||||||
|
@ -57,6 +57,7 @@ FX_Corpse_Spawn(player pl)
|
||||||
body_next.SetAngles(pl.angles);
|
body_next.SetAngles(pl.angles);
|
||||||
body_next.velocity = (pl.velocity);
|
body_next.velocity = (pl.velocity);
|
||||||
body_next.colormap = pl.colormap;
|
body_next.colormap = pl.colormap;
|
||||||
return body_next;
|
body_next.SetFrame(anim);
|
||||||
|
return (entity)body_next;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
Loading…
Reference in New Issue