From: Rudolf Polzer Date: Sun, 22 Jan 2012 14:57:04 +0000 (+0100) Subject: casings: if they got removed by a touch function, abort the draw handler X-Git-Tag: xonotic-v0.6.0~97^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=59caf41c001506aec129c7c09d7396b47cf4fa16;p=xonotic%2Fxonotic-data.pk3dir.git casings: if they got removed by a touch function, abort the draw handler --- diff --git a/qcsrc/client/casings.qc b/qcsrc/client/casings.qc index 1e2d4fbd8..d4d1041c8 100644 --- a/qcsrc/client/casings.qc +++ b/qcsrc/client/casings.qc @@ -15,6 +15,8 @@ void Casing_Draw() } Movetype_Physics_MatchTicrate(autocvar_cl_casings_ticrate, autocvar_cl_casings_sloppy); + if(wasfreed(self)) + return; // deleted by touch function self.renderflags = 0; self.alpha = bound(0, self.cnt - time, 1);