Skip to content

Commit

Permalink
fix for boomerang
Browse files Browse the repository at this point in the history
  • Loading branch information
White Dragon committed Jun 19, 2018
1 parent 93a0188 commit 5e7cfcd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion engine/openbor.c
Original file line number Diff line number Diff line change
Expand Up @@ -10449,7 +10449,9 @@ s_model *load_cached_model(char *name, char *owner, char unload)
newanim->dropframe = NULL;
newanim->cancel = 0; // OX. For cancelling anims into a freespecial. 0 by default , 3 when enabled. IMPORTANT!! Must stay as it is!
newanim->animhits = 0; //OX counts hits on a per anim basis for cancels.
newanim->subentity = newanim->projectile.bomb = newanim->projectile.knife = newanim->projectile.star = newanim->projectile.flash = -1;
newanim->subentity = newanim->projectile.bomb = newanim->projectile.knife =
newanim->projectile.star = newanim->projectile.boomerang =
newanim->projectile.flash = -1;
newanim->quakeframe.framestart = 0;
newanim->sync = -1;

Expand Down Expand Up @@ -22780,6 +22782,10 @@ void set_model_ex(entity *ent, char *modelname, int index, s_model *newmodel, in
{
newmodel->star = model->star;
}
if(newmodel->boomerang < 0)
{
newmodel->boomerang = model->boomerang;
}
if(newmodel->flash < 0)
{
newmodel->flash = model->flash;
Expand Down

0 comments on commit 5e7cfcd

Please sign in to comment.