From: havoc Date: Thu, 18 Dec 2008 05:18:21 +0000 (+0000) Subject: fixed a bug with "time" command in effectinfo.txt to use float parsing X-Git-Tag: xonotic-v0.1.0preview~1990 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4923f258e0c7d504f77770c7571ebeadd5537660;p=xonotic%2Fdarkplaces.git fixed a bug with "time" command in effectinfo.txt to use float parsing instead of int parsing git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8600 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_particles.c b/cl_particles.c index 97fed83a..26b7078d 100644 --- a/cl_particles.c +++ b/cl_particles.c @@ -308,7 +308,7 @@ void CL_Particles_ParseEffectInfo(const char *textstart, const char *textend) else if (!strcmp(argv[0], "size")) {readfloats(info->size, 2);} else if (!strcmp(argv[0], "sizeincrease")) {readfloat(info->size[2]);} else if (!strcmp(argv[0], "alpha")) {readfloats(info->alpha, 3);} - else if (!strcmp(argv[0], "time")) {readints(info->time, 2);} + else if (!strcmp(argv[0], "time")) {readfloats(info->time, 2);} else if (!strcmp(argv[0], "gravity")) {readfloat(info->gravity);} else if (!strcmp(argv[0], "bounce")) {readfloat(info->bounce);} else if (!strcmp(argv[0], "airfriction")) {readfloat(info->airfriction);}