Skip to content

Commit def40f4

Browse files
committed
Cleanup
1 parent 3015ee5 commit def40f4

22 files changed

+7
-26
lines changed

client/sdl/i_main.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@
7575

7676
EXTERN_CVAR (r_centerwindow)
7777

78-
DArgs Args;
79-
8078
// functions to be called at shutdown are stored in this stack
8179
typedef void (STACK_ARGS *term_func_t)(void);
8280
std::stack< std::pair<term_func_t, std::string> > TermFuncs;

client/src/cl_game.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ EXTERN_CVAR (chasedemo)
111111
gameaction_t gameaction;
112112
gamestate_t gamestate = GS_STARTUP;
113113

114-
bool paused;
115114
bool sendpause; // send a pause event next tic
116115
bool sendsave; // send a save event next tic
117116
bool usergame; // ok to save / end game

client/src/cl_level.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ dtime_t starttime;
7979
FLZOMemFile *reset_snapshot = NULL;
8080

8181
extern bool r_underwater;
82-
bool savegamerestore;
8382

8483
extern int mousex, mousey, joyforward, joystrafe, joyturn, joylook, Impulse;
8584
extern bool sendpause, sendsave, sendcenterview;

client/src/d_main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ extern bool M_DemoNoPlay; // [RH] if true, then skip any demos in the loop
108108
extern DThinker ThinkerCap;
109109
extern dyncolormap_t NormalLight;
110110

111-
bool devparm; // started game with -devparm
112111
const char *D_DrawIcon; // [RH] Patch name of icon to draw on next refresh
113112
static bool wiping_screen = false;
114113

114+
bool autostart;
115115
bool advancedemo;
116116
event_t events[MAXEVENTS];
117117
int eventhead;

client/src/m_menu.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ size_t saveCharIndex; // which char we're editing
105105
// old save description before edit
106106
char saveOldString[SAVESTRINGSIZE];
107107

108-
bool menuactive;
109-
110108
int repeatKey;
111109
int repeatCount;
112110

common/doomstat.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
// ------------------------
4141
// Command line parameters.
4242
//
43-
extern bool devparm; // DEBUG: launched with -devparm
43+
inline bool devparm; // DEBUG: launched with -devparm
4444

4545

4646
// -----------------------------------------------------
@@ -103,8 +103,8 @@ EXTERN_CVAR (sv_maxplayers)
103103
// status bar explicitely.
104104
extern bool statusbaractive;
105105

106-
extern bool menuactive; // Menu overlayed?
107-
extern bool paused; // Game Pause?
106+
inline bool menuactive; // Menu overlayed?
107+
inline bool paused; // Game Pause?
108108

109109

110110
inline bool viewactive;

common/g_level.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ inline std::array<ACSWorldGlobalArray, NUM_WORLDVARS> ACS_WorldArrays;
449449
inline std::array<int, NUM_GLOBALVARS> ACS_GlobalVars;
450450
inline std::array<ACSWorldGlobalArray, NUM_GLOBALVARS> ACS_GlobalArrays;
451451

452-
extern bool savegamerestore;
452+
inline bool savegamerestore;
453453

454454
void G_InitNew(const char *mapname);
455455
inline void G_InitNew(const OLumpName& mapname) { G_InitNew(mapname.c_str()); }

common/m_argv.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ class DArgs : public DObject
6868

6969
};
7070

71-
extern DArgs Args;
71+
inline DArgs Args;
7272

7373
void M_FindResponseFile(void);
7474
int M_GetParmValue(const char* name);
7575

76-
extern bool DefaultsLoaded;
76+
extern bool DefaultsLoaded;

server/src/d_main.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ extern bool gameisdead;
9090
extern DThinker ThinkerCap;
9191
extern dyncolormap_t NormalLight;
9292

93-
bool devparm; // started game with -devparm
9493
event_t events[MAXEVENTS];
9594
gamestate_t wipegamestate = GS_DEMOSCREEN; // can be -1 to force a wipe
9695

server/src/i_main.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ using namespace std;
5353

5454
void AddCommandString(std::string cmd);
5555

56-
DArgs Args;
57-
5856
#ifdef _WIN32
5957
extern UINT TimerPeriod;
6058
#endif

server/src/sv_game.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ EXTERN_CVAR (sv_teamsinplay)
5959
gameaction_t gameaction;
6060
gamestate_t gamestate = GS_STARTUP;
6161

62-
bool paused;
6362
bool sendpause; // send a pause event next tic
6463

6564
bool timingdemo; // FIXME : delete this variable for odasrv ?

server/src/sv_level.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ FLZOMemFile *reset_snapshot = NULL;
8282

8383
bool firstmapinit = true; // Nes - Avoid drawing same init text during every rebirth in single-player servers.
8484

85-
bool savegamerestore;
86-
8785
extern bool sendpause;
8886

8987

server/src/sv_stubs.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
#include "d_player.h"
2929
#include "v_palette.h"
3030

31-
bool menuactive;
32-
3331
void R_ExitLevel() {}
3432
void D_SetupUserInfo (void) {}
3533
void D_UserInfoChanged (cvar_t *cvar) {}

tests/unit-tests/src/teststubs.cpp tests/unit-tests/src/t_stubs.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,12 @@ void P_ShowSpawns(MapThing*) {}
5151
void G_DeathMatchSpawnPlayer(player_t&) {}
5252
player_t& consoleplayer() { static player_t fake{}; return fake; }
5353
player_t& displayplayer() { static player_t fake{}; return fake; }
54-
DArgs Args;
5554
bool clientside;
5655
bool isFast;
5756
bool timingdemo;
5857
bool demoplayback;
59-
bool devparm;
60-
bool paused;
61-
bool menuactive;
6258
bool step_mode;
6359
int gametic;
64-
bool savegamerestore;
6560
bool simulated_connection;
6661

6762
void BuildDefaultShademap(palette_t const *, shademap_t &) {}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)