]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_tent.c
misc. cleanup, bubble trails fixed, improved lightmap compatibility.
[xonotic/darkplaces.git] / cl_tent.c
index bbb48121066c68f142bf5d2de79843e4c151b6bc..a3795adfc083f306ff5c774d29069d4a521534ff 100644 (file)
--- a/cl_tent.c
+++ b/cl_tent.c
@@ -470,7 +470,7 @@ void CL_ParseTEnt (void)
                break;
                
        default:
-               Sys_Error ("CL_ParseTEnt: bad type");
+               Host_Error ("CL_ParseTEnt: bad type %d", type);
        }
 }
 
@@ -576,8 +576,7 @@ void CL_UpdateTEnts (void)
                        dl->die = cl.time + 0.001;
                        dl->color[0] = 1;dl->color[1] = 1;dl->color[2] = 1;
 
-                       for (i=0 ; i<3 ; i++)
-                               org[i] += dist[i]*30;
+                       VectorMA(org, 30, dist, org);
                        d -= 30;
                }
        }