mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-27 07:00:26 +01:00
Mark the trigger as dead after kill
This commit is contained in:
1 file changed
+4
@@ -788,6 +788,10 @@ void Trigger::DamageEvent(Event *ev)
|
||||
if (health <= 0) {
|
||||
Event *event;
|
||||
|
||||
if (max_health) {
|
||||
deadflag = DEAD_DEAD;
|
||||
}
|
||||
|
||||
event = new Event(EV_Activate, 1);
|
||||
event->AddEntity(attacker);
|
||||
ProcessEvent(event);
|
||||
|
||||
Reference in new issue
Block a user