Reset gibsthisframe and lastgibframe at map change

ported de5849caf534c5c687bcfcd9f5951e3a62da3fd7 from yquake2 to zaero
This commit is contained in:
Daniel Gibson 2016-02-20 17:46:14 +01:00
parent 0822b94db9
commit 469c53e03e
3 changed files with 6 additions and 1 deletions

View file

@ -280,6 +280,8 @@ void ExitLevel (void)
level.fadeFrames = 0;
level.exitintermission = 0;
level.intermissiontime = 0;
gibsthisframe = 0;
lastgibframe = 0;
}
/*

View file

@ -503,6 +503,9 @@ extern spawn_temp_t st;
extern int sm_meat_index;
extern int snd_fry;
extern int gibsthisframe;
extern int lastgibframe;
extern int jacket_armor_index;
extern int combat_armor_index;
extern int body_armor_index;

View file

@ -1219,7 +1219,7 @@ Info_RemoveKey(char *s, char *key)
if (!strcmp(key, pkey))
{
strcpy(start, s); /* remove this part */
memmove(start, s, strlen(s) + 1); /* remove this part */
return;
}