]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
added a default case (Sys_Error) to CL_RocketTrail as recommended by [515]
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 15 Aug 2005 14:02:43 +0000 (14:02 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 15 Aug 2005 14:02:43 +0000 (14:02 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5582 d7cf8633-e32d-0410-b094-e92efae38249

cl_particles.c

index ef30aad873bdb99fbae5dd93e58043a36e758a2b..25d90792310494f33d6399195cc65dd88c9a0e05 100644 (file)
@@ -1214,6 +1214,8 @@ void CL_RocketTrail (vec3_t start, vec3_t end, int type, int color, entity_t *en
                                        particle(particletype + pt_alphastatic, color, color, tex_particle, 5, qd*128, qd*320, 0, 0, pos[0], pos[1], pos[2], 0, 0, 0, 0);
                                break;
 #endif
+                       default:
+                               Sys_Error("CL_RocketTrail: unknown trail type %i\n", type);
                }
 
                // advance to next time and position