Commit 5160b9c 1 parent 0ce45c0 commit 5160b9c Copy full SHA for 5160b9c
File tree 7 files changed +14
-39
lines changed
7 files changed +14
-39
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,6 @@ EXTERN_CVAR (in_autosr50)
108
108
109
109
EXTERN_CVAR (chasedemo)
110
110
111
- gameaction_t gameaction;
112
111
gamestate_t gamestate = GS_STARTUP;
113
112
114
113
bool sendpause; // send a pause event next tic
@@ -120,8 +119,6 @@ bool longtics; // don't quantize yaw for classic vanilla demos
120
119
bool nodrawers; // for comparative timing purposes
121
120
bool noblit; // for comparative timing purposes
122
121
123
- byte consoleplayer_id; // player taking events and displaying
124
- byte displayplayer_id; // view being displayed
125
122
int gametic;
126
123
127
124
extern fixed_t bobx;
@@ -187,7 +184,6 @@ CVAR_FUNC_IMPL(cl_mouselook)
187
184
}
188
185
189
186
char demoname[256 ];
190
- bool demoplayback;
191
187
192
188
extern bool simulated_connection;
193
189
Original file line number Diff line number Diff line change 1
- // Emacs style mode select -*- C++ -*-
1
+ // Emacs style mode select -*- C++ -*-
2
2
// -----------------------------------------------------------------------------
3
3
//
4
4
// $Id$
18
18
//
19
19
// DESCRIPTION:
20
20
// Input event handling (?)
21
- //
21
+ //
22
22
// -----------------------------------------------------------------------------
23
23
24
24
#pragma once
@@ -63,7 +63,7 @@ struct event_t
63
63
int mod; // input mods
64
64
};
65
65
66
-
66
+
67
67
typedef enum
68
68
{
69
69
ga_nothing,
@@ -96,7 +96,7 @@ typedef enum
96
96
// Flag: game events, not really buttons.
97
97
BT_SPECIAL = 128 ,
98
98
BT_SPECIALMASK = 3 ,
99
-
99
+
100
100
// Flag, weapon change pending.
101
101
// If true, the next 3 bits hold weapon num.
102
102
BT_CHANGE = 4 ,
@@ -112,10 +112,10 @@ typedef enum
112
112
BTS_SAVEGAME = 2 ,
113
113
114
114
// Savegame slot numbers
115
- // occupy the second byte of buttons.
115
+ // occupy the second byte of buttons.
116
116
BTS_SAVEMASK = (4 +8 +16 ),
117
117
BTS_SAVESHIFT = 2
118
-
118
+
119
119
} buttoncode_t ;
120
120
121
121
@@ -130,4 +130,4 @@ extern event_t events[MAXEVENTS];
130
130
extern int eventhead;
131
131
extern int eventtail;
132
132
133
- extern gameaction_t gameaction;
133
+ inline gameaction_t gameaction;
Original file line number Diff line number Diff line change @@ -644,8 +644,8 @@ size_t P_NumPlayersInGame();
644
644
size_t P_NumReadyPlayersInGame ();
645
645
size_t P_NumPlayersOnTeam (team_t team);
646
646
647
- extern byte consoleplayer_id;
648
- extern byte displayplayer_id;
647
+ inline byte consoleplayer_id; // player taking events and displaying
648
+ inline byte displayplayer_id; // view being displayed
649
649
650
650
//
651
651
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ extern level_locals_t level;
127
127
// Disable save/end game?
128
128
extern bool usergame;
129
129
130
- extern bool demoplayback;
130
+ inline bool demoplayback;
131
131
132
132
// Quit after playing a demo from cmdline.
133
133
extern bool singledemo;
Original file line number Diff line number Diff line change @@ -60,5 +60,3 @@ void P_SpawnFireFlicker(sector_t* sector);
60
60
AActor* P_GetPushThing (int );
61
61
void P_PostProcessCompatibleLinedefSpecial (line_t * line);
62
62
bool P_IsTeleportLine (const short special);
63
-
64
- extern bool demoplayback;
Original file line number Diff line number Diff line change @@ -56,20 +56,15 @@ EXTERN_CVAR (sv_fastmonsters)
56
56
EXTERN_CVAR (sv_freelook)
57
57
EXTERN_CVAR (sv_teamsinplay)
58
58
59
- gameaction_t gameaction;
60
59
gamestate_t gamestate = GS_STARTUP;
61
60
62
61
bool sendpause; // send a pause event next tic
63
62
64
63
player_t nullplayer; // The null player
65
64
66
- byte consoleplayer_id; // player taking events and displaying
67
- byte displayplayer_id; // view being displayed
68
65
int gametic;
69
66
70
-
71
67
FILE *recorddemo_fp; // Ch0wW : Keeping this for future serverside demo-recording.
72
- bool demoplayback; // FIXME : remove this serverside !
73
68
int demostartgametic; // FIXME : remove this serverside !
74
69
75
70
wbstartstruct_t wminfo; // parms for world map / intermission
Original file line number Diff line number Diff line change @@ -40,18 +40,13 @@ bool clientside = false; // don't want any rendering code called
40
40
bool serverside = true ;
41
41
baseapp_t baseapp = test;
42
42
43
- // Unnatural Level Progression. True if we've used 'map' or another command
44
- // to switch to a specific map out of order, otherwise false.
45
- bool unnatural_level_progression;
46
- unsigned char consoleplayer_id;
43
+ bool unnatural_level_progression = false ;
44
+ bool step_mode = false ;
47
45
wbstartstruct_t wminfo;
48
- gameaction_t gameaction;
46
+
49
47
bool predicting;
50
48
int demostartgametic;
51
-
52
49
bool isFast;
53
- bool demoplayback;
54
- bool step_mode;
55
50
int gametic;
56
51
bool simulated_connection;
57
52
gamestate_t gamestate;
@@ -127,19 +122,10 @@ void V_RefreshColormaps() {}
127
122
128
123
size_t C_BasePrint (const int printlevel, const char * color_code, const std::string& str) { return 0 ; }
129
124
130
- #define NORM_PITCH 128
131
- #define NORM_PRIORITY 64
132
- #define NORM_SEP 128
133
-
134
- #define S_PITCH_PERTURB 1
135
- #define S_STEREO_SWING (96 <<FRACBITS)
136
-
137
125
//
138
126
// [RH] Print sound debug info. Called from D_Display()
139
127
//
140
- void S_NoiseDebug ()
141
- {
142
- }
128
+ void S_NoiseDebug () {}
143
129
144
130
145
131
//
You can’t perform that action at this time.
0 commit comments