Counter-Strike: Moved spriteframe() cache around, because FTE doesn't seem to want to execute it in this particular function... compiler bug?

This commit is contained in:
Marco Cawthorne 2020-08-17 05:48:14 +02:00
parent aab8ff9572
commit 108da90299
2 changed files with 2 additions and 2 deletions

View file

@ -127,6 +127,4 @@ Game_RendererRestarted(string rstr)
FX_Spark_Init();
FX_Impact_Init();
FX_Smokenade_Init();
g_c4bombled_spr = spriteframe("sprites/ledglow.spr", 0, 0.0f);
}

View file

@ -270,6 +270,8 @@ w_c4bomb_parse(void)
item_c4 tm = (item_c4)self;
spawnfunc_item_c4();
g_c4bombled_spr = spriteframe("sprites/ledglow.spr", 0, 0.0f);
tm.origin[0] = readcoord();
tm.origin[1] = readcoord();
tm.origin[2] = readcoord();