]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fixed a bug with "time" command in effectinfo.txt to use float parsing
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 18 Dec 2008 05:18:21 +0000 (05:18 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 18 Dec 2008 05:18:21 +0000 (05:18 +0000)
instead of int parsing

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8600 d7cf8633-e32d-0410-b094-e92efae38249

cl_particles.c

index 97fed83ad638e1933a90d8efc3461b258bf994ac..26b7078d03df8202efa199d53e4beea02b9c02b1 100644 (file)
@@ -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);}