mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-07-08 13:06:13 -04:00
Fix CCTV still working when destroyed
This commit is contained in:
@@ -13658,6 +13658,10 @@ void objDamage(struct defaultobj *obj, f32 damage, struct coord *pos, s32 weapon
|
||||
} else if (obj->type == OBJTYPE_AUTOGUN) {
|
||||
obj->flags |= OBJFLAG_AUTOGUN_DAMAGED;
|
||||
|
||||
if (objGetDestroyedLevel(obj) == 1) {
|
||||
obj->flags |= OBJFLAG_DEACTIVATED;
|
||||
}
|
||||
} else if (obj->type == OBJTYPE_CCTV) {
|
||||
if (objGetDestroyedLevel(obj) == 1) {
|
||||
obj->flags |= OBJFLAG_DEACTIVATED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user