From 5ea389dc71a1bbc405dcdfec24def886bc31762d Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Mon, 13 Dec 2021 12:56:01 -0800 Subject: [PATCH] Change FX_Corpse_Spawn's header to work around a possible compiler bug that gets triggered in cstrike. --- base/src/shared/fx_corpse.qc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/base/src/shared/fx_corpse.qc b/base/src/shared/fx_corpse.qc index 2c5b858f..38746f17 100644 --- a/base/src/shared/fx_corpse.qc +++ b/base/src/shared/fx_corpse.qc @@ -44,8 +44,8 @@ FX_Corpse_Next(void) return r; } -NSRenderableEntity -FX_Corpse_Spawn(player pl) +entity +FX_Corpse_Spawn(player pl, float anim) { NSRenderableEntity body_next = FX_Corpse_Next(); setorigin(body_next, pl.origin + [0,0,32]); @@ -57,6 +57,7 @@ FX_Corpse_Spawn(player pl) body_next.SetAngles(pl.angles); body_next.velocity = (pl.velocity); body_next.colormap = pl.colormap; - return body_next; + body_next.SetFrame(anim); + return (entity)body_next; } #endif \ No newline at end of file