From 4de3b170bced9d998eebbebcf1248aaeb1510cdb Mon Sep 17 00:00:00 2001 From: Finny Merrill Date: Sun, 14 Dec 2003 12:58:28 +0000 Subject: [PATCH] Whoops, had params reversed, giving people frags when they were killed (hahe) Also add more info to printtrace --- debug.qc | 2 +- obituary.qc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/debug.qc b/debug.qc index e878541..b553054 100644 --- a/debug.qc +++ b/debug.qc @@ -77,7 +77,7 @@ void (float oneline) printtrace = RPrint ("endpos: " + vtos (trace_endpos) + sep); RPrint ("plane_normal: " + vtos (trace_plane_normal) + sep); RPrint ("plane_dist: " + ftos (trace_plane_dist) + sep); - RPrint ("ent: " + (trace_ent ? "yes" : "no") + sep); + RPrint ("ent: " + (trace_ent ? trace_ent.classname : "no") + sep); RPrint ("inopen: " + ftos (trace_inopen) + sep); RPrint ("inwater: " + ftos (trace_inwater) + "\n"); diff --git a/obituary.qc b/obituary.qc index 0596ec1..c2f0672 100644 --- a/obituary.qc +++ b/obituary.qc @@ -72,7 +72,7 @@ It's cleaner that way. =========== */ -void(entity atk, entity targ) Give_Frags_Player = +void(entity targ, entity atk) Give_Frags_Player = { local float numfrags = 1, chkvamp = 1; @@ -115,7 +115,7 @@ void(entity atk, entity targ) Give_Frags_Player = }; -void (entity atk, entity targ) Give_Frags_Monster = +void (entity targ, entity atk) Give_Frags_Monster = { if (atk == targ) return; // no neg frags to monsters @@ -136,7 +136,7 @@ void (entity atk, entity targ) Give_Frags_Monster = Give_Frags_Player(atk, targ); }; -void (entity atk, entity targ) Give_Frags_Building = +void (entity targ, entity atk) Give_Frags_Building = { if (atk == targ) return;