From e8c97abd51983c2fc88f9c396d9fb8806ca22eed Mon Sep 17 00:00:00 2001 From: Rafael Barreto Date: Sun, 16 May 2010 15:49:29 +0000 Subject: [PATCH] Makke's suggestion: make the shotgun longer range git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4880 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/tools.h | 1 + source/src/weapon.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/src/tools.h b/source/src/tools.h index ceaeedf9..78b97653 100644 --- a/source/src/tools.h +++ b/source/src/tools.h @@ -59,6 +59,7 @@ static inline float round(float x) { return floor(x + 0.5f); } #define clamp(a,b,c) (max(b, min(a, c))) #define rnd(max) (rand()%(max)) +#define rnd_2x(max) (rand()%(max)+rand()%(max)) #define detrnd(s, x) ((int)(((((uint)(s))*1103515245+12345)>>16)%(x))) #define loop(v,m) for(int v = 0; v