|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
/* $Id: basic.h,v 1.36 2006/08/15 14:12:19 patty21 Exp $ */
|
|
|
|
|
/* $Id: basic.h,v 1.37 2009/10/10 09:43:54 stpohle Exp $ */
|
|
|
|
|
/* basic types which we need everywhere */
|
|
|
|
|
|
|
|
|
|
#ifndef _BC_BASIC_H_
|
|
|
|
@ -82,7 +82,7 @@
|
|
|
|
|
|
|
|
|
|
#define AUTOSTART 20 /* server autostart */
|
|
|
|
|
|
|
|
|
|
#define MW_IS_GFX_SELECT(__gfx_nr,__result) for (__result = (MAX_PLAYERS-1); (__result >= 0) && (players[__result].gfx_nr != __gfx_nr); __result--);
|
|
|
|
|
#define MW_IS_GFX_SELECT(__gfx_nr,__result) for (__result = (MAX_PLAYERS-1); (__result >= 0) && (players[__result].gfx_nr != __gfx_nr); __result--) d_printf ("__result:%d, gfx:%d __gfx:%d\n", __result, players[__result].gfx_nr, __gfx_nr);
|
|
|
|
|
|
|
|
|
|
#define CUTINT(__x) (__x-floorf(__x)) // cut the integer part off
|
|
|
|
|
#define postofield(__x) ((int)(rintf(__x))) // position to int with rounding
|
|
|
|
|