[nexuiz-commits] r8368 - trunk/data/qcsrc/client
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat Dec 5 04:46:49 EST 2009
Author: lordhavoc
Date: 2009-12-05 04:46:48 -0500 (Sat, 05 Dec 2009)
New Revision: 8368
Modified:
trunk/data/qcsrc/client/projectile.qc
Log:
fix bug where dlight from rocket flickered because trailparticles() was
not being called if start and end locations were the same
Modified: trunk/data/qcsrc/client/projectile.qc
===================================================================
--- trunk/data/qcsrc/client/projectile.qc 2009-12-04 16:07:58 UTC (rev 8367)
+++ trunk/data/qcsrc/client/projectile.qc 2009-12-05 09:46:48 UTC (rev 8368)
@@ -27,21 +27,6 @@
self.trail_oldorigin = to;
self.trail_oldtime = time;
- if(from == to)
- {
- switch(self.cnt)
- {
- case PROJECTILE_FIREMINE:
- to_z += 1;
- break;
- case PROJECTILE_ELECTRO:
- trailparticles(self, particleeffectnum("TR_NEXUIZPLASMA"), from, to);
- return;
- default:
- return;
- }
- }
-
switch(self.cnt)
{
case PROJECTILE_ROCKET:
@@ -90,6 +75,8 @@
trailparticles(self, particleeffectnum("tr_rifle"), from, to);
break;
case PROJECTILE_FIREMINE:
+ if(from == to)
+ to_z += 1;
trailparticles(self, particleeffectnum("firemine"), from, to);
break;
case PROJECTILE_FIREBALL:
More information about the nexuiz-commits
mailing list