mirror of
https://github.com/yquake2/zaero.git
synced 2024-11-25 21:31:24 +00:00
Reset gibsthisframe and lastgibframe at map change
ported de5849caf534c5c687bcfcd9f5951e3a62da3fd7 from yquake2 to zaero
This commit is contained in:
parent
0822b94db9
commit
469c53e03e
3 changed files with 6 additions and 1 deletions
|
@ -280,6 +280,8 @@ void ExitLevel (void)
|
||||||
level.fadeFrames = 0;
|
level.fadeFrames = 0;
|
||||||
level.exitintermission = 0;
|
level.exitintermission = 0;
|
||||||
level.intermissiontime = 0;
|
level.intermissiontime = 0;
|
||||||
|
gibsthisframe = 0;
|
||||||
|
lastgibframe = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -503,6 +503,9 @@ extern spawn_temp_t st;
|
||||||
extern int sm_meat_index;
|
extern int sm_meat_index;
|
||||||
extern int snd_fry;
|
extern int snd_fry;
|
||||||
|
|
||||||
|
extern int gibsthisframe;
|
||||||
|
extern int lastgibframe;
|
||||||
|
|
||||||
extern int jacket_armor_index;
|
extern int jacket_armor_index;
|
||||||
extern int combat_armor_index;
|
extern int combat_armor_index;
|
||||||
extern int body_armor_index;
|
extern int body_armor_index;
|
||||||
|
|
|
@ -1219,7 +1219,7 @@ Info_RemoveKey(char *s, char *key)
|
||||||
|
|
||||||
if (!strcmp(key, pkey))
|
if (!strcmp(key, pkey))
|
||||||
{
|
{
|
||||||
strcpy(start, s); /* remove this part */
|
memmove(start, s, strlen(s) + 1); /* remove this part */
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue