From 4923f258e0c7d504f77770c7571ebeadd5537660 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 18 Dec 2008 05:18:21 +0000 Subject: [PATCH] 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 --- cl_particles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);} -- 2.39.2