From d1a82b792471283809914926c8d88d4ddecb026d Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Mon, 6 Aug 2001 22:54:09 +0000 Subject: Makefile uses q3lcc now --- src/game/bg_local.h | 4 ++-- src/game/bg_pmove.c | 4 ++-- src/game/q_shared.h | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src/game') diff --git a/src/game/bg_local.h b/src/game/bg_local.h index 2fbcf5dd..28d5e511 100644 --- a/src/game/bg_local.h +++ b/src/game/bg_local.h @@ -68,8 +68,8 @@ typedef struct } smooth_t; //TA: make this into a cvar later.... -#define SMOOTHTIME 300 -#define MAXSMOOTHS 16 +#define SMOOTHTIME 300 +#define MAXSMOOTHS 16 //TA: wall climbing local typedef struct diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c index 85727d4d..5c0764d7 100644 --- a/src/game/bg_pmove.c +++ b/src/game/bg_pmove.c @@ -1691,9 +1691,9 @@ static void PM_GroundTrace( void ) { //toggle wall climbing if holding crouch if( pm->cmd.upmove < 0 && wcl[ pm->ps->clientNum ].lastUpmove >= 0 ) { - if( !( pm->ps->stats[ STAT_STATE ] & SS_WALLCLIMBING ) && pm->cmd.upmove < 0 ) + if( !( pm->ps->stats[ STAT_STATE ] & SS_WALLCLIMBING ) ) pm->ps->stats[ STAT_STATE ] |= SS_WALLCLIMBING; - else if( pm->ps->stats[ STAT_STATE ] & SS_WALLCLIMBING && pm->cmd.upmove < 0 ) + else if( pm->ps->stats[ STAT_STATE ] & SS_WALLCLIMBING ) pm->ps->stats[ STAT_STATE ] &= ~SS_WALLCLIMBING; } diff --git a/src/game/q_shared.h b/src/game/q_shared.h index 3bb7e433..8814b664 100644 --- a/src/game/q_shared.h +++ b/src/game/q_shared.h @@ -242,6 +242,7 @@ static inline float LittleFloat (const float l) { return FloatSwap(&l); } // the mac compiler can't handle >32k of locals, so we // just waste space and make big arrays static... #ifdef __linux__ +#ifndef __LCC__ //TA: q3lcc defines __linux__ // bk001205 - from Makefile #define stricmp strcasecmp @@ -283,6 +284,7 @@ inline static int LittleLong (int l) { return LongSwap(l); } inline static float LittleFloat (const float *l) { return FloatSwap(l); } #endif +#endif #endif //======================= FreeBSD DEFINES ===================== -- cgit