X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=cl_particles.c;h=ef30aad873bdb99fbae5dd93e58043a36e758a2b;hp=2e5d5259c6cdd0160499f71b9301243440d5994d;hb=95e0893e5dec7501a4ff07d7522dd4ce24b645aa;hpb=5b447a4f32380cae914d94fcc89f993ea850ccfa diff --git a/cl_particles.c b/cl_particles.c index 2e5d5259..ef30aad8 100644 --- a/cl_particles.c +++ b/cl_particles.c @@ -78,11 +78,17 @@ void fractalnoise(qbyte *noise, int size, int startgrid) for (sizepower = 0;(1 << sizepower) < size;sizepower++); if (size != (1 << sizepower)) - Sys_Error("fractalnoise: size must be power of 2\n"); + { + Con_Printf("fractalnoise: size must be power of 2\n"); + return; + } for (gridpower = 0;(1 << gridpower) < startgrid;gridpower++); if (startgrid != (1 << gridpower)) - Sys_Error("fractalnoise: grid must be power of 2\n"); + { + Con_Printf("fractalnoise: grid must be power of 2\n"); + return; + } startgrid = bound(0, startgrid, size); @@ -949,7 +955,7 @@ void CL_ParticleRain (vec3_t mins, vec3_t maxs, vec3_t dir, int count, int color } break; default: - Host_Error("CL_ParticleRain: unknown type %i (0 = rain, 1 = snow)\n", type); + Con_Printf ("CL_ParticleRain: unknown type %i (0 = rain, 1 = snow)\n", type); } } @@ -2019,7 +2025,10 @@ void R_DrawParticleCallback(const void *calldata1, int calldata2) particle_texcoord2f[6] = 1;particle_texcoord2f[7] = v[1]; } else - Host_Error("R_DrawParticles: unknown particle orientation %i\n", p->type->orientation); + { + Con_Printf("R_DrawParticles: unknown particle orientation %i\n", p->type->orientation); + return; + } #if WORKINGLQUAKE if (blendmode == PBLEND_ALPHA)