From 0b2f57dd4dd8e3ee2a15f9fb121313f45ebc9926 Mon Sep 17 00:00:00 2001 From: ultramage Date: Sat, 19 May 2007 11:19:35 +0000 Subject: 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 --- src/common/utils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/common') 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] ////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3-70-g09d2