diff options
Diffstat (limited to '')
| -rw-r--r-- | tile.c | 15 |
1 files changed, 7 insertions, 8 deletions
| @@ -10,7 +10,7 @@ static double mwfact = MWFACT; | |||
| 10 | 10 | ||
| 11 | void | 11 | void |
| 12 | setmwfact(const char *arg) { | 12 | setmwfact(const char *arg) { |
| 13 | double delta, newfact; | 13 | double delta; |
| 14 | 14 | ||
| 15 | if(!isarrange(tile)) | 15 | if(!isarrange(tile)) |
| 16 | return; | 16 | return; |
| @@ -19,14 +19,13 @@ setmwfact(const char *arg) { | |||
| 19 | mwfact = MWFACT; | 19 | mwfact = MWFACT; |
| 20 | else if(1 == sscanf(arg, "%lf", &delta)) { | 20 | else if(1 == sscanf(arg, "%lf", &delta)) { |
| 21 | if(arg[0] != '+' && arg[0] != '-') | 21 | if(arg[0] != '+' && arg[0] != '-') |
| 22 | newfact = delta; | 22 | mwfact = delta; |
| 23 | else | 23 | else |
| 24 | newfact = mwfact + delta; | 24 | mwfact += delta; |
| 25 | if(newfact < 0.1) | 25 | if(mwfact < 0.1) |
| 26 | newfact = 0.1; | 26 | mwfact = 0.1; |
| 27 | else if(newfact > 0.9) | 27 | else if(mwfact > 0.9) |
| 28 | newfact = 0.9; | 28 | mwfact = 0.9; |
| 29 | mwfact = newfact; | ||
| 30 | } | 29 | } |
| 31 | arrange(); | 30 | arrange(); |
| 32 | } | 31 | } |
