diff options
| author | Cracker64 <cracker642@gmail.com> | 2011-02-03 21:38:58 (GMT) |
|---|---|---|
| committer | Cracker64 <cracker642@gmail.com> | 2011-02-03 21:38:58 (GMT) |
| commit | 1755f08e44b4a8a6bc60bc5c92fbc7fff558f32a (patch) | |
| tree | ad962da2152a0f9378582a5bd94ac044a27f452f /src/interface.c | |
| parent | db038e9643a99de5ddaba04d99eaceab91fc860d (diff) | |
| download | powder-1755f08e44b4a8a6bc60bc5c92fbc7fff558f32a.zip powder-1755f08e44b4a8a6bc60bc5c92fbc7fff558f32a.tar.gz | |
variables and if statements for scripts, GoL is glitchy for me, i don't know why
Diffstat (limited to 'src/interface.c')
| -rw-r--r-- | src/interface.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interface.c b/src/interface.c index 2989571..346c923 100644 --- a/src/interface.c +++ b/src/interface.c @@ -3965,6 +3965,7 @@ int console_parse_type(char *txt, int *element, char *err) if (strcmp(txt,num)==0) { *element = i; + strcpy(err,""); return 1; } } @@ -3976,12 +3977,14 @@ int console_parse_type(char *txt, int *element, char *err) if (i>=0) { *element = i; + strcpy(err,""); return 1; } for (i=1; i<PT_NUM; i++) { if (strcasecmp(txt,ptypes[i].name)==0) { *element = i; + strcpy(err,""); return 1; } } @@ -4044,6 +4047,7 @@ int console_parse_partref(char *txt, int *which, char *err) if (i>=0 && i<NPART && parts[i].type) { *which = i; + strcpy(err,""); return 1; } strcpy(err,"Particle does not exist"); |
