mirror of
https://github.com/yquake2/xatrix.git
synced 2025-02-23 04:11:28 +00:00
Reset gibsthisframe and lastgibframe at map change
Without this change the conditionals at g_misc.c:199 and 381 wouldn't trigger until level.framenum reach it's previous value, resulting in much to few debris or gibs being thrown. This fixes #104. Many thanks to maraakate for the analysis and the idea how to fix it.
This commit is contained in:
parent
ef8882e106
commit
291d9852ee
3 changed files with 21 additions and 15 deletions
|
@ -380,6 +380,9 @@ ExitLevel(void)
|
|||
ent->health = ent->client->pers.max_health;
|
||||
}
|
||||
}
|
||||
|
||||
gibsthisframe = 0;
|
||||
lastgibframe = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
#include "header/local.h"
|
||||
|
||||
int gibsthisframe = 0;
|
||||
int lastgibframe = 0;
|
||||
int gibsthisframe;
|
||||
int lastgibframe;
|
||||
|
||||
/*
|
||||
* QUAKED func_group (0 0 0) ?
|
||||
|
|
|
@ -428,6 +428,9 @@ extern spawn_temp_t st;
|
|||
extern int sm_meat_index;
|
||||
extern int snd_fry;
|
||||
|
||||
extern int gibsthisframe;
|
||||
extern int lastgibframe;
|
||||
|
||||
/* means of death */
|
||||
#define MOD_UNKNOWN 0
|
||||
#define MOD_BLASTER 1
|
||||
|
|
Loading…
Reference in a new issue