@@ -105,6 +105,13 @@ cvar_t v_ipitch_level = {"v_ipitch_level", "0.3", 0, 0.3, NULL};
105105
106106float v_idlescale; // used by TFC for concussion grenade effect
107107
108+ #ifdef XASH_64BIT
109+ #define BAD_ENT_PTR 0xFFFFFFFFFFFFFFFF
110+ #else
111+ #define BAD_ENT_PTR 0xFFFFFFFF
112+ #endif
113+
114+
108115// =============================================================================
109116/*
110117void V_NormalizeAngles( float *angles )
@@ -1205,8 +1212,8 @@ void V_GetDirectedChasePosition(cl_entity_t * ent1, cl_entity_t * ent2,float *
12051212 v_lastDistance = 4096 .0f ;
12061213 // v_cameraMode = CAM_MODE_FOCUS;
12071214 }
1208-
1209- if ( ( ent2 == (cl_entity_t *)UINTPTR_MAX ) || ( ent1->player && (ent1->curstate .solid == SOLID_NOT) ) )
1215+
1216+ if ( ( ent2 == (cl_entity_t *)BAD_ENT_PTR ) || ( ent1->player && (ent1->curstate .solid == SOLID_NOT) ) )
12101217 {
12111218 // we have no second target or player just died
12121219 V_GetSingleTargetCam (ent1, angle, origin);
@@ -1286,7 +1293,7 @@ void V_GetChasePos(int target, float * cl_angles, float * origin, float * angles
12861293 V_GetDirectedChasePosition ( ent, gEngfuncs .GetEntityByIndex ( g_iUser3 ),
12871294 angles, origin );
12881295 else
1289- V_GetDirectedChasePosition ( ent, (cl_entity_t *)UINTPTR_MAX ,
1296+ V_GetDirectedChasePosition ( ent, (cl_entity_t *)BAD_ENT_PTR ,
12901297 angles, origin );
12911298 }
12921299 else
0 commit comments