summaryrefslogtreecommitdiff
path: root/asciifarm/common
diff options
context:
space:
mode:
authortroido <troido@hotmail.com>2018-01-01 20:09:23 +0100
committertroido <troido@hotmail.com>2018-01-01 20:09:23 +0100
commit6e38056beff444b54dab65f8f8e3830cbcb05e88 (patch)
treeb670ba6b95419d94c8b28267e416f7bf06c53072 /asciifarm/common
parent123edfd17cd9aa38d6d5e511a8c686d5d71ab140 (diff)
inventory, equipment and ground object lists now scroll with the selector
Diffstat (limited to 'asciifarm/common')
-rw-r--r--asciifarm/common/utils.py2
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):