Skip to content

Commit

Permalink
Remove more unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
doomhack committed Jan 3, 2020
1 parent 2f7e9b4 commit 9e4ab35
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 29 deletions.
2 changes: 1 addition & 1 deletion include/d_englsh.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
#define LOADNET "you can't do load while in a net game!\n\n"PRESSKEY
#define QLOADNET "you can't quickload during a netgame!\n\n"PRESSKEY
#define QSAVESPOT "you haven't picked a quicksave slot yet!\n\n"PRESSKEY
#define SAVEDEAD "you can't save if you aren't playing!\n\n"PRESSKEY
#define SAVEDEAD "you can't save if\nyou aren't playing!\n\n"PRESSKEY
#define QSPROMPT "quicksave over your game named\n\n'%s'?\n\n"PRESSYN
#define QLPROMPT "do you want to quickload the game named\n\n'%s'?\n\n"PRESSYN

Expand Down
4 changes: 1 addition & 3 deletions include/g_game.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ extern const int key_map_follow;
extern const int key_map_mark; // ^
extern const int key_map_clear; // |
extern const int key_map_grid; // phares
extern const int key_map_rotate; // cph - map rotation
extern const int key_map_overlay;// cph - map overlay


// killough 5/2/98: moved from d_deh.c:
Expand All @@ -140,7 +138,7 @@ extern const int cpars[32]; // hardcoded array size
// CPhipps - Make savedesciption visible in wider scope
#define SAVEDESCLEN 8

#define NUMKEYS 512
#define NUMKEYS 16


#endif
5 changes: 1 addition & 4 deletions include/global_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ fixed_t scale_ftom;

int lastlevel, lastepisode;

boolean leveljuststarted; // kluge until AM_LevelInit() is called
boolean stopped;

fixed_t mtof_zoommul; // how far the window zooms each tic (map coords)
Expand All @@ -98,8 +97,7 @@ fixed_t ftom_zoommul; // how far the window zooms each tic (fb coords)
//d_client.c
//******************************************************************************

ticcmd_t netcmds[MAXPLAYERS];
ticcmd_t* localcmds;
ticcmd_t netcmd;
int maketic;
int lastmadetic;

Expand Down Expand Up @@ -185,7 +183,6 @@ int basetic; /* killough 9/29/98: for demo sync */
int totalkills, totallive, totalitems, totalsecret; // for intermission
int demover;
wbstartstruct_t wminfo; // parms for world map / intermission
byte *savebuffer; // CPhipps - static
int totalleveltimes; // CPhipps - total time for all completed levels
int longtics;

Expand Down
1 change: 0 additions & 1 deletion include/global_init.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
//am_map.c
//******************************************************************************

_g->leveljuststarted = 1;
_g->scale_mtof = (fixed_t)INITSCALEMTOF;
_g->stopped = true;

Expand Down
12 changes: 0 additions & 12 deletions source/am_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,6 @@ static void AM_initVariables(void)
// CPhipps - get status bar height from status bar code
static void AM_LevelInit(void)
{
_g->leveljuststarted = 0;

_g->f_x = _g->f_y = 0;
_g->f_w = SCREENWIDTH*2; // killough 2/7/98: get rid of finit_ vars
_g->f_h = SCREENHEIGHT-ST_SCALED_HEIGHT;// to allow runtime setting of width/height
Expand Down Expand Up @@ -405,16 +403,6 @@ boolean AM_Responder
// Ty 03/27/98 - externalized
_g->player.message = (_g->automapmode & am_follow) ? AMSTR_FOLLOWON : AMSTR_FOLLOWOFF;
} // |
else if (ch == key_map_rotate)
{
_g->automapmode ^= am_rotate;
_g->player.message = (_g->automapmode & am_rotate) ? AMSTR_ROTATEON : AMSTR_ROTATEOFF;
}
else if (ch == key_map_overlay)
{
_g->automapmode ^= am_overlay;
_g->player.message = (_g->automapmode & am_overlay) ? AMSTR_OVERLAYON : AMSTR_OVERLAYOFF;
}
else if (ch == key_map_zoomout)
{
_g->mtof_zoommul = M_ZOOMOUT;
Expand Down
4 changes: 1 addition & 3 deletions source/d_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@

void D_InitNetGame (void)
{
_g->localcmds = &_g->netcmds[0];

_g->playeringame = true;
}

Expand All @@ -84,7 +82,7 @@ void D_BuildNewTiccmds(void)
if (_g->maketic - _g->gametic > 3)
break;

G_BuildTiccmd(&_g->localcmds[0]);
G_BuildTiccmd(&_g->netcmd);
_g->maketic++;
}
}
Expand Down
2 changes: 1 addition & 1 deletion source/d_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ static void D_DoomLoop(void)
if (_g->singletics)
{
I_StartTic ();
G_BuildTiccmd (&_g->netcmds[0]);
G_BuildTiccmd (&_g->netcmd);

if (_g->advancedemo)
D_DoAdvanceDemo ();
Expand Down
2 changes: 1 addition & 1 deletion source/doom_iwad.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "iwad/doom2.gba.h"
#include "iwad/doomu.gba.h"

#include "doom_iwad.h"

Expand Down
4 changes: 1 addition & 3 deletions source/g_game.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ const int key_map_up = KEYD_UP;
const int key_map_down = KEYD_DOWN;
const int key_map = KEYD_SELECT;
const int key_map_follow = KEYD_A;
const int key_map_overlay = 'o'; // cph - map overlay
const int key_map_rotate = 'r'; // cph - map rotation
const int key_map_zoomin = KEYD_R;
const int key_map_zoomout = KEYD_L;
// phares
Expand Down Expand Up @@ -511,7 +509,7 @@ boolean G_Responder (event_t* ev)
{
ticcmd_t *cmd = &_g->player.cmd;

memcpy(cmd, &_g->netcmds[0], sizeof *cmd);
memcpy(cmd, &_g->netcmd, sizeof *cmd);

if (_g->demoplayback)
G_ReadDemoTiccmd (cmd);
Expand Down

0 comments on commit 9e4ab35

Please sign in to comment.