Small fix of skin replacement

This commit is contained in:
Yamagi Burmeister 2011-08-16 09:38:13 +00:00
parent 672266241c
commit 76e4017dea

View file

@ -283,7 +283,7 @@ mmove_t gunner_move_pain1 = {FRAME_pain101, FRAME_pain118, gunner_frames_pain1,
void gunner_pain (edict_t *self, edict_t *other, float kick, int damage) void gunner_pain (edict_t *self, edict_t *other, float kick, int damage)
{ {
if (self->health < (self->max_health / 2)) if (self->health < (self->max_health / 2))
self->s.skinnum = 1; self->s.skinnum |= 1;
if (level.time < self->pain_debounce_time) if (level.time < self->pain_debounce_time)
return; return;
@ -336,6 +336,9 @@ void gunner_die (edict_t *self, edict_t *inflictor, edict_t *attacker, int damag
{ {
int n; int n;
self->s.skinnum |= 1;
self->monsterinfo.power_armor_type = POWER_ARMOR_NONE;
// check for gib // check for gib
if (self->health <= self->gib_health) if (self->health <= self->gib_health)
{ {