diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-04-02 22:10:00 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-04-07 15:28:25 +0200 |
commit | a77005060dac93cfdd5cdfdf7dc849e0f5207f60 (patch) | |
tree | 50fcc8d4f1ad5120547113f248e2ece67fc7dd5c /src/util.c | |
parent | 2d8ba33e34c0cbab8b7db8bbd972f1b18b28b199 (diff) |
Lua: Move get_level_{use,max}_stick bits to C
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -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) |