summaryrefslogtreecommitdiff
path: root/src/util.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-02-23 09:12:01 +0100
committerBardur Arantsson <bardur@scientician.net>2015-02-23 09:12:01 +0100
commit37ac44add61e4547507770017dcb85b53c20acb5 (patch)
tree20d678f3d06cf850b39b1c20b1d21f9c8b49a5db /src/util.cc
parent37cea853947851134b2e6f2e338d85ddc5378616 (diff)
Split util.cc function declarations into separate header files
We need one .h file and one .hpp since some of the functions are being called from plain C code.
Diffstat (limited to 'src/util.cc')
-rw-r--r--src/util.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/util.cc b/src/util.cc
index 55badc07..fbd2020c 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -3,6 +3,7 @@
/* Purpose: Angband utilities -BEN- */
#include "util.hpp"
+#include "util.h"
#include "angband.h"
#include "cmd3.hpp"
#include "cmd4.hpp"
@@ -3677,12 +3678,6 @@ char msg_box(cptr text, int y, int x)
return inkey();
}
-/* Rescale a value */
-s32b rescale(s32b x, s32b max, s32b new_max)
-{
- return (x * new_max) / max;
-}
-
/*
* Timers
*/