Skip to content

Commit

Permalink
Remove some apple specific code paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ensiform committed Dec 14, 2023
1 parent 5b9770a commit a505dec
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 14 deletions.
4 changes: 0 additions & 4 deletions src/client/cl_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,15 +491,11 @@ static void CL_JoystickMove( usercmd_t *cmd ) {
anglespeed = 0.001 * cls.frametime;
}

#if defined(__APPLE__) || defined(__APPLE_CC__)
cmd->rightmove = ClampCharMove( cmd->rightmove + cl.joystickAxis[AXIS_SIDE] );
#else
if ( !kb[KB_STRAFE].active ) {
cl.viewangles[YAW] += anglespeed * cl_yawspeed->value * cl.joystickAxis[AXIS_SIDE];
} else {
cmd->rightmove = ClampCharMove( cmd->rightmove + cl.joystickAxis[AXIS_SIDE] );
}
#endif
if ( kb[KB_MLOOK].active ) {
cl.viewangles[PITCH] += anglespeed * cl_pitchspeed->value * cl.joystickAxis[AXIS_FORWARD];
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/qcommon/cm_patch.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ static int CM_FindPlane2( const float plane[4], qboolean *flipped ) {

// add a new plane
if ( numPlanes == MAX_PATCH_PLANES ) {
Com_Error( ERR_DROP, "MAX_PATCH_PLANES" );
Com_Error( ERR_DROP, "%s: MAX_PATCH_PLANES (%i) reached", __func__, MAX_PATCH_PLANES );
}

Vector4Copy( plane, planes[numPlanes].plane );
Expand Down Expand Up @@ -591,7 +591,7 @@ static int CM_FindPlane( const float *p1, const float *p2, const float *p3 ) {

// add a new plane
if ( numPlanes == MAX_PATCH_PLANES ) {
Com_Error( ERR_DROP, "MAX_PATCH_PLANES" );
Com_Error( ERR_DROP, "%s: MAX_PATCH_PLANES (%i) reached", __func__, MAX_PATCH_PLANES );
}

Vector4Copy( plane, planes[numPlanes].plane );
Expand Down
4 changes: 0 additions & 4 deletions src/renderer/tr_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1832,11 +1832,7 @@ static void R_Register( void )
r_textureMode = ri.Cvar_Get( "r_textureMode", "GL_LINEAR_MIPMAP_NEAREST", CVAR_ARCHIVE );
ri.Cvar_SetDescription( r_textureMode, "Texture interpolation mode:\n GL_NEAREST: Nearest neighbor interpolation and will therefore appear similar to Quake II except with the added colored lighting\n GL_LINEAR: Linear interpolation and will appear to blend in objects that are closer than the resolution that the textures are set as\n GL_NEAREST_MIPMAP_NEAREST: Nearest neighbor interpolation with mipmapping for bilinear hardware, mipmapping will blend objects that are farther away than the resolution that they are set as\n GL_LINEAR_MIPMAP_NEAREST: Linear interpolation with mipmapping for bilinear hardware\n GL_NEAREST_MIPMAP_LINEAR: Nearest neighbor interpolation with mipmapping for trilinear hardware\n GL_LINEAR_MIPMAP_LINEAR: Linear interpolation with mipmapping for trilinear hardware" );
ri.Cvar_SetGroup( r_textureMode, CVG_RENDERER );
#if defined(__APPLE__) || defined(__APPLE_CC__)
r_gamma = ri.Cvar_Get( "r_gamma", "1.2", CVAR_ARCHIVE_ND );
#else
r_gamma = ri.Cvar_Get( "r_gamma", "1.3", CVAR_ARCHIVE_ND );
#endif
ri.Cvar_CheckRange( r_gamma, "0.5", "3", CV_FLOAT );
ri.Cvar_SetDescription( r_gamma, "Gamma correction factor" );
ri.Cvar_SetGroup( r_gamma, CVG_RENDERER );
Expand Down
4 changes: 0 additions & 4 deletions src/renderervk/tr_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1847,11 +1847,7 @@ static void R_Register( void )
r_textureMode = ri.Cvar_Get( "r_textureMode", "GL_LINEAR_MIPMAP_NEAREST", CVAR_ARCHIVE );
ri.Cvar_SetDescription( r_textureMode, "Texture interpolation mode:\n GL_NEAREST: Nearest neighbor interpolation and will therefore appear similar to Quake II except with the added colored lighting\n GL_LINEAR: Linear interpolation and will appear to blend in objects that are closer than the resolution that the textures are set as\n GL_NEAREST_MIPMAP_NEAREST: Nearest neighbor interpolation with mipmapping for bilinear hardware, mipmapping will blend objects that are farther away than the resolution that they are set as\n GL_LINEAR_MIPMAP_NEAREST: Linear interpolation with mipmapping for bilinear hardware\n GL_NEAREST_MIPMAP_LINEAR: Nearest neighbor interpolation with mipmapping for trilinear hardware\n GL_LINEAR_MIPMAP_LINEAR: Linear interpolation with mipmapping for trilinear hardware" );
ri.Cvar_SetGroup( r_textureMode, CVG_RENDERER );
#if defined(__APPLE__) || defined(__APPLE_CC__)
r_gamma = ri.Cvar_Get( "r_gamma", "1.2", CVAR_ARCHIVE_ND );
#else
r_gamma = ri.Cvar_Get( "r_gamma", "1.3", CVAR_ARCHIVE_ND );
#endif
ri.Cvar_CheckRange( r_gamma, "0.5", "3", CV_FLOAT );
ri.Cvar_SetDescription( r_gamma, "Gamma correction factor" );
ri.Cvar_SetGroup( r_gamma, CVG_RENDERER );
Expand Down

0 comments on commit a505dec

Please sign in to comment.