diff options
| -rw-r--r-- | src/cgame/cg_syscalls.asm | 3 | ||||
| -rw-r--r-- | src/cgame/cg_view.c | 1 | ||||
| -rw-r--r-- | src/game/g_active.c | 6 | ||||
| -rw-r--r-- | src/game/g_admin.c | 2 | ||||
| -rw-r--r-- | src/game/g_admin.h | 2 | ||||
| -rw-r--r-- | src/game/g_buildable.c | 6 | ||||
| -rw-r--r-- | src/game/g_local.h | 7 | ||||
| -rw-r--r-- | src/game/g_main.c | 10 | ||||
| -rw-r--r-- | src/ui/ui_main.c | 1 | ||||
| -rw-r--r-- | src/ui/ui_syscalls.asm | 3 | 
10 files changed, 6 insertions, 35 deletions
diff --git a/src/cgame/cg_syscalls.asm b/src/cgame/cg_syscalls.asm index 2537c91c..5ff88d10 100644 --- a/src/cgame/cg_syscalls.asm +++ b/src/cgame/cg_syscalls.asm @@ -12,7 +12,7 @@ equ trap_Argv                         -9  equ trap_Args                         -10  equ trap_FS_FOpenFile                 -11  equ trap_FS_Read                      -12 -equ trap_FS_Write                     -13  +equ trap_FS_Write                     -13  equ trap_FS_FCloseFile                -14  equ trap_SendConsoleCommand           -15  equ trap_AddCommand                   -16 @@ -118,4 +118,3 @@ equ floor                             -208  equ ceil                              -209  equ testPrintInt                      -210  equ testPrintFloat                    -211 - diff --git a/src/cgame/cg_view.c b/src/cgame/cg_view.c index 1259fbb8..ee642aaf 100644 --- a/src/cgame/cg_view.c +++ b/src/cgame/cg_view.c @@ -1093,7 +1093,6 @@ static void CG_smoothWWTransitions( playerState_t *ps, const vec3_t in, vec3_t o    if( !VectorCompare( surfNormal, cg.lastNormal ) )    {      //if we moving from the ceiling to the floor special case -    //( x product of colinear vectors is undefined)      if( VectorCompare( ceilingNormal, cg.lastNormal ) &&          VectorCompare( refNormal,     surfNormal ) )      { diff --git a/src/game/g_active.c b/src/game/g_active.c index f99e7661..e17f3806 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -1249,16 +1249,10 @@ void ClientThink_real( gentity_t *ent )    // sanity check the command time to prevent speedup cheating    if( ucmd->serverTime > level.time + 200 ) -  {      ucmd->serverTime = level.time + 200; -//    G_Printf("serverTime <<<<<\n" ); -  }    if( ucmd->serverTime < level.time - 1000 ) -  {      ucmd->serverTime = level.time - 1000; -//    G_Printf("serverTime >>>>>\n" ); -  }    msec = ucmd->serverTime - client->ps.commandTime;    // following others may result in bad times, but we still want diff --git a/src/game/g_admin.c b/src/game/g_admin.c index 272dd363..9c8941fb 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -2441,7 +2441,7 @@ qboolean G_admin_adminhelp( gentity_t *ent )    }    else    { -    //!adminhelp param +    // adminhelp param      char param[ MAX_ADMIN_CMD_LEN ];      g_admin_cmd_t *admincmd;      qboolean denied = qfalse; diff --git a/src/game/g_admin.h b/src/game/g_admin.h index 9971d450..f78752d3 100644 --- a/src/game/g_admin.h +++ b/src/game/g_admin.h @@ -50,7 +50,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA   * IMMUTABLE - admin commands cannot be used on them   * INCOGNITO - does not show up as an admin in /listplayers   * ALLFLAGS - all flags (including command flags) apply to this player - * ADMINCHAT - receieves and can send /a admin messages + * ADMINCHAT - receives and can send /a admin messages   */  #define ADMF_IMMUNITY        "IMMUNITY"  #define ADMF_NOCENSORFLOOD   "NOCENSORFLOOD" diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index a61b0eff..9e122bdc 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -2261,9 +2261,6 @@ void HMGTurret_FindEnemy( gentity_t *self )    gentity_t *target;    int       start; -  if( self->enemy ) -    self->enemy->targeted = NULL; -    self->enemy = NULL;    // Look for targets in a box around the turret @@ -2283,7 +2280,6 @@ void HMGTurret_FindEnemy( gentity_t *self )        continue;      self->enemy = target; -    self->enemy->targeted = self;      return;    }  } @@ -4145,7 +4141,6 @@ static void G_LayoutBuildItem( buildable_t buildable, vec3_t origin,    gentity_t *builder;    builder = G_Spawn( ); -  builder->client = 0;    VectorCopy( origin, builder->s.pos.trBase );    VectorCopy( angles, builder->s.angles );    VectorCopy( origin2, builder->s.origin2 ); @@ -4376,7 +4371,6 @@ void G_BuildLogRevert( int id )      {        gentity_t  *builder = G_Spawn(); -      builder->client = NULL;        VectorCopy( log->origin, builder->s.pos.trBase );        VectorCopy( log->angles, builder->s.angles );        VectorCopy( log->origin2, builder->s.origin2 ); diff --git a/src/game/g_local.h b/src/game/g_local.h index 45926560..8fd929e0 100644 --- a/src/game/g_local.h +++ b/src/game/g_local.h @@ -116,7 +116,6 @@ struct gentity_s    int               soundLoop;    gentity_t         *parent;    gentity_t         *nextTrain; -  gentity_t         *prevTrain;    vec3_t            pos1, pos2;    float             rotatorAngle;    gentity_t         *clipBrush;     // clipping brush for model doors @@ -125,7 +124,6 @@ struct gentity_s    int               timestamp;      // body queue sinking, etc -  float             angle;          // set in editor, -1 = up, -2 = down    char              *target;    char              *targetname;    char              *team; @@ -154,7 +152,6 @@ struct gentity_s    void              (*die)( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int damage, int mod );    int               pain_debounce_time; -  int               fly_sound_debounce_time;  // wind tunnel    int               last_move_time;    int               health; @@ -192,7 +189,6 @@ struct gentity_s    gentity_t         *parentNode;        // for creep and defence/spawn dependencies    gentity_t         *rangeMarker;    qboolean          active;             // for power repeater, but could be useful elsewhere -  qboolean          locked;             // used for turret tracking    qboolean          powered;            // for human buildables    struct namelog_s  *builtBy;           // person who built this    int               dcc;                // number of controlling dccs @@ -213,7 +209,6 @@ struct gentity_s    int               credits[ MAX_CLIENTS ];     // human credits for each client    int               killedBy;                   // clientNum of killer -  gentity_t         *targeted;          // true if the player is currently a valid target of a turret    vec3_t            turretAim;          // aim vector for turrets    vec3_t            turretAimRate;      // track turn speed for norfenturrets    int               turretSpinupTime;   // spinup delay for norfenturrets @@ -234,8 +229,6 @@ struct gentity_s    int               lastDamageTime;    int               nextRegenTime; -  qboolean          ownerClear;                     // used for missle tracking -    qboolean          pointAgainstWorld;              // don't use the bbox for map collisions    int               buildPointZone;                 // index for zone diff --git a/src/game/g_main.c b/src/game/g_main.c index 52e59ddd..b150a95d 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -388,11 +388,8 @@ void G_FindTeams( void )    c = 0;    c2 = 0; -  for( i = 1, e = g_entities+i; i < level.num_entities; i++, e++ ) +  for( i = MAX_CLIENTS, e = g_entities + i; i < level.num_entities; i++, e++ )    { -    if( !e->inuse ) -      continue; -      if( !e->team )        continue; @@ -405,9 +402,6 @@ void G_FindTeams( void )      for( j = i + 1, e2 = e + 1; j < level.num_entities; j++, e2++ )      { -      if( !e2->inuse ) -        continue; -        if( !e2->team )          continue; @@ -1667,7 +1661,7 @@ void ExitLevel( void )      cl->ps.persistant[ PERS_SCORE ] = 0;    } -  // we need to do this here before chaning to CON_CONNECTING +  // we need to do this here before changing to CON_CONNECTING    G_WriteSessionData( );    // change all client states to connecting, so the early players into the diff --git a/src/ui/ui_main.c b/src/ui/ui_main.c index 97c5074a..3932b1e0 100644 --- a/src/ui/ui_main.c +++ b/src/ui/ui_main.c @@ -4026,7 +4026,6 @@ void UI_Init( qboolean inGameLoad )    uiInfo.uiDC.drawSides = &UI_DrawSides;    uiInfo.uiDC.drawTopBottom = &UI_DrawTopBottom;    uiInfo.uiDC.clearScene = &trap_R_ClearScene; -  uiInfo.uiDC.drawSides = &UI_DrawSides;    uiInfo.uiDC.addRefEntityToScene = &trap_R_AddRefEntityToScene;    uiInfo.uiDC.renderScene = &trap_R_RenderScene;    uiInfo.uiDC.registerFont = &trap_R_RegisterFont; diff --git a/src/ui/ui_syscalls.asm b/src/ui/ui_syscalls.asm index 1e797a97..b5668000 100644 --- a/src/ui/ui_syscalls.asm +++ b/src/ui/ui_syscalls.asm @@ -42,7 +42,7 @@ equ trap_Key_GetOverstrikeMode        -39  equ trap_Key_SetOverstrikeMode        -40  equ trap_Key_ClearStates              -41  equ trap_Key_GetCatcher               -42 -equ trap_Key_SetCatcher               -43         +equ trap_Key_SetCatcher               -43  equ trap_GetClipboardData             -44  equ trap_GetGlconfig                  -45  equ trap_GetClientState               -46 @@ -99,4 +99,3 @@ equ atan2                             -106  equ sqrt                              -107  equ floor                             -108  equ ceil                              -109 -  | 
