libpsys
changeset 17:7fbed016e739
fixed the particle system loading
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Tue, 11 Sep 2012 03:26:13 +0300 |
parents | 3871a45a4e4b |
children | 66956b1e5e3f |
files | src/pattr.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line diff
1.1 --- a/src/pattr.c Tue Sep 11 02:13:12 2012 +0300 1.2 +++ b/src/pattr.c Tue Sep 11 03:26:13 2012 +0300 1.3 @@ -254,8 +254,8 @@ 1.4 *tmp++ = 0; 1.5 opt->name = strdup(buf); 1.6 1.7 - tval = strtod(tmp + 1, &endp); 1.8 - if(endp == tmp + 1) { /* nada ... */ 1.9 + tval = strtod(tmp, &endp); 1.10 + if(endp == tmp) { /* nada ... */ 1.11 opt->tm = 0; 1.12 } else if(*endp == 's') { /* seconds suffix */ 1.13 opt->tm = (long)(tval * 1000.0f);