summaryrefslogtreecommitdiff
path: root/tile.c
diff options
context:
space:
mode:
Diffstat (limited to 'tile.c')
-rw-r--r--tile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tile.c b/tile.c
index e1c68f82..386832d6 100644
--- a/tile.c
+++ b/tile.c
@@ -16,7 +16,9 @@ addtomwfact(const char *arg) {
return;
/* arg handling, manipulate mwfact */
- if(arg && (1 == sscanf(arg, "%lf", &delta))) {
+ if(arg == NULL)
+ mwfact = MWFACT;
+ else if(1 == sscanf(arg, "%lf", &delta)) {
if(delta + mwfact > 0.1 && delta + mwfact < 0.9)
mwfact += delta;
}