From 6e38056beff444b54dab65f8f8e3830cbcb05e88 Mon Sep 17 00:00:00 2001 From: troido Date: Mon, 1 Jan 2018 20:09:23 +0100 Subject: inventory, equipment and ground object lists now scroll with the selector --- asciifarm/common/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'asciifarm/common') 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): -- cgit