summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-02 22:10:00 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-07 15:28:25 +0200
commita77005060dac93cfdd5cdfdf7dc849e0f5207f60 (patch)
tree50fcc8d4f1ad5120547113f248e2ece67fc7dd5c /src/util.c
parent2d8ba33e34c0cbab8b7db8bbd972f1b18b28b199 (diff)
Lua: Move get_level_{use,max}_stick bits to C
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/util.c b/src/util.c
index 93e38e4a..f1b0710e 100644
--- a/src/util.c
+++ b/src/util.c
@@ -4318,19 +4318,6 @@ bool_ prefix(cptr s, cptr t)
}
/*
- * Rescale a value
- */
-s32b value_scale(int value, int vmax, int max, int min)
-{
- s32b full_max = max - min;
-
- value = (value * full_max) / vmax;
- value += min;
-
- return value;
-}
-
-/*
* Displays a box
*/
void draw_box(int y, int x, int h, int w)