]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_particles.c
sys: improve error and crash handling
[xonotic/darkplaces.git] / cl_particles.c
index 31abace8711e9e2dfbd2bfe20b37460c12519785..1757b80eaccea2fca2923a9cd9f86c385b17d731 100644 (file)
@@ -2025,7 +2025,7 @@ static void setuptex(int texnum, unsigned char *data, unsigned char *particletex
        int basex, basey, w, h, y;
        CL_Particle_PixelCoordsForTexnum(texnum, &basex, &basey, &w, &h);
        if(w != PARTICLETEXTURESIZE || h != PARTICLETEXTURESIZE)
-               Sys_Error("invalid particle texture size for autogenerating");
+               Sys_Abort("invalid particle texture size for autogenerating");
        for (y = 0;y < PARTICLETEXTURESIZE;y++)
                memcpy(particletexturedata + ((basey + y) * PARTICLEFONTSIZE + basex) * 4, data + y * PARTICLETEXTURESIZE * 4, PARTICLETEXTURESIZE * 4);
 }