Hopefully fix recursive glass breaking function call

This is a weird one, hopefully this fixes it!
This commit is contained in:
Simon 2022-11-16 21:28:08 +00:00
parent 96f6be0be9
commit f179693772

View file

@ -1054,7 +1054,9 @@ void funcGlassUse( gentity_t *self, gentity_t *other, gentity_t *activator )
self->splashRadius = 40; // ?? some random number, maybe it's ok? self->splashRadius = 40; // ?? some random number, maybe it's ok?
funcGlassDie( self, other, activator, self->health, MOD_UNKNOWN ); if (self->takedamage) {
funcGlassDie(self, other, activator, self->health, MOD_UNKNOWN);
}
} }
//----------------------------------------------------- //-----------------------------------------------------