summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-05-19 11:19:35 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-05-19 11:19:35 +0000
commit0b2f57dd4dd8e3ee2a15f9fb121313f45ebc9926 (patch)
tree951a1d3b39b8bd5bad79cd890a685ea7e85ab041 /src/common
parentc96e27b729adf2b8244f6985371b8f0dd6547672 (diff)
downloadhercules-0b2f57dd4dd8e3ee2a15f9fb121313f45ebc9926.tar.gz
hercules-0b2f57dd4dd8e3ee2a15f9fb121313f45ebc9926.tar.bz2
hercules-0b2f57dd4dd8e3ee2a15f9fb121313f45ebc9926.tar.xz
hercules-0b2f57dd4dd8e3ee2a15f9fb121313f45ebc9926.zip
Removed the wtf-y mmo_char_fromsql_short() from r2527
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10578 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common')
-rw-r--r--src/common/utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/utils.h b/src/common/utils.h
index ec9cb5416..ba02fc5f1 100644
--- a/src/common/utils.h
+++ b/src/common/utils.h
@@ -31,6 +31,9 @@ void StringBuf_Free(struct StringBuf *);
void findfile(const char *p, const char *pat, void (func)(const char*));
+//Caps values to min/max
+#define cap_value(a, min, max) ((a >= max) ? max : (a <= min) ? min : a)
+
//////////////////////////////////////////////////////////////////////////
// byte word dword access [Shinomori]
//////////////////////////////////////////////////////////////////////////