diff options
Diffstat (limited to '')
| -rw-r--r-- | tile.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -16,7 +16,9 @@ addtomwfact(const char *arg) { | |||
| 16 | return; | 16 | return; |
| 17 | 17 | ||
| 18 | /* arg handling, manipulate mwfact */ | 18 | /* arg handling, manipulate mwfact */ |
| 19 | if(arg && (1 == sscanf(arg, "%lf", &delta))) { | 19 | if(arg == NULL) |
| 20 | mwfact = MWFACT; | ||
| 21 | else if(1 == sscanf(arg, "%lf", &delta)) { | ||
| 20 | if(delta + mwfact > 0.1 && delta + mwfact < 0.9) | 22 | if(delta + mwfact > 0.1 && delta + mwfact < 0.9) |
| 21 | mwfact += delta; | 23 | mwfact += delta; |
| 22 | } | 24 | } |
