diff options
| author | troido <troido@hotmail.com> | 2018-01-01 20:09:23 +0100 |
|---|---|---|
| committer | troido <troido@hotmail.com> | 2018-01-01 20:09:23 +0100 |
| commit | 6e38056beff444b54dab65f8f8e3830cbcb05e88 (patch) | |
| tree | b670ba6b95419d94c8b28267e416f7bf06c53072 /asciifarm/common/utils.py | |
| parent | 123edfd17cd9aa38d6d5e511a8c686d5d71ab140 (diff) | |
inventory, equipment and ground object lists now scroll with the selector
Diffstat (limited to 'asciifarm/common/utils.py')
| -rw-r--r-- | asciifarm/common/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asciifarm/common/utils.py b/asciifarm/common/utils.py index 729c85f..b37ec02 100644 --- a/asciifarm/common/utils.py +++ b/asciifarm/common/utils.py @@ -3,7 +3,7 @@ import os def clamp(val, lower, upper): """ val if it's between lower and upper, else the closest of the two""" - return min(max(val, lower), upper) + return max(min(val, upper), lower) def concat(arr): |
