default effectinfo velocitymultiplier to 0 in nexuiz mode
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 1 Jul 2011 05:25:04 +0000 (05:25 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 1 Jul 2011 05:25:04 +0000 (05:25 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11228 d7cf8633-e32d-0410-b094-e92efae38249

cl_particles.c

index 4ef3d66..ab4f820 100644 (file)
@@ -367,6 +367,9 @@ void CL_Particles_ParseEffectInfo(const char *textstart, const char *textend, co
                        // copy entire info from baseline, then fix up the nameindex
                        *info = baselineparticleeffectinfo;
                        info->effectnameindex = effectnameindex;
+                       // Nexuiz had some busted effects that didn't specify this...
+                       if (gamemode == GAME_NEXUIZ)
+                               info->velocitymultiplier = 0.0f;
                }
                else if (info == NULL)
                {