From 841843b5a7685fb09bef3c6caf9ffdafe57ce06c Mon Sep 17 00:00:00 2001 From: cypress Date: Sun, 16 Jul 2023 12:31:07 -0400 Subject: [PATCH] SERVER: Fix worldspawn reference after Waffe --- source/server/weapons/weapon_core.qc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/server/weapons/weapon_core.qc b/source/server/weapons/weapon_core.qc index cd947a1..352700c 100644 --- a/source/server/weapons/weapon_core.qc +++ b/source/server/weapons/weapon_core.qc @@ -768,9 +768,10 @@ void Parse_Damage () = // DO NOT TOUCH else DamageHandler(body_ent,self, total_dmg, S_NORMAL); - body_ent.washit = 0; - body_ent.hitamount = 0; - + if (body_ent != world) { + body_ent.washit = 0; + body_ent.hitamount = 0; + } } ent = findfloat (ent, washit, 1); }