mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- removed some dead variables.
This commit is contained in:
parent
18099e9179
commit
e01c161258
11 changed files with 1 additions and 40 deletions
|
@ -173,8 +173,6 @@ void ShutDown(void)
|
|||
sfxTerm();
|
||||
scrUnInit();
|
||||
// PORT_TODO: Check argument
|
||||
if (syncstate)
|
||||
printf("A packet was lost! (syncstate)\n");
|
||||
DO_FREE_AND_NULL(pUserTiles);
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
#include "zstring.h"
|
||||
#include "vectors.h"
|
||||
|
||||
extern char appactive;
|
||||
extern char modechange;
|
||||
|
||||
extern int32_t swapcomplete;
|
||||
|
@ -27,7 +26,6 @@ EXTERN_CVAR(Bool, r_usenewaspect)
|
|||
extern int32_t newaspect_enable;
|
||||
extern int32_t r_fpgrouscan;
|
||||
extern int32_t setaspect_new_use_dimen;
|
||||
extern uint32_t r_screenxy;
|
||||
extern int32_t xres, yres, bpp, bytesperline, refreshfreq;
|
||||
extern intptr_t frameplace;
|
||||
extern char offscreenrendering;
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
|
||||
extern int myconnectindex, numplayers;
|
||||
extern int connecthead, connectpoint2[MAXMULTIPLAYERS];
|
||||
extern unsigned char syncstate;
|
||||
|
||||
|
||||
#endif // mmulti_h_
|
||||
|
|
|
@ -138,7 +138,6 @@ static int32_t oxdimen = -1, oviewingrange = -1, oxyaspect = -1;
|
|||
// r_usenewaspect is the cvar, newaspect_enable to trigger the new behaviour in the code
|
||||
CVAR(Bool, r_usenewaspect, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG);
|
||||
int32_t newaspect_enable=0;
|
||||
uint32_t r_screenxy = 0;
|
||||
|
||||
int32_t r_fpgrouscan = 1;
|
||||
int32_t globalflags;
|
||||
|
|
|
@ -43,23 +43,8 @@
|
|||
double g_beforeSwapTime;
|
||||
GameInterface* gi;
|
||||
|
||||
void buildkeytranslationtable();;
|
||||
|
||||
int myconnectindex, numplayers;
|
||||
int connecthead, connectpoint2[MAXMULTIPLAYERS];
|
||||
unsigned char syncstate;
|
||||
|
||||
/// These can be useful for debugging sometimes...
|
||||
//#define SDL_WM_GrabInput(x) SDL_WM_GrabInput(SDL_GRAB_OFF)
|
||||
//#define SDL_ShowCursor(x) SDL_ShowCursor(SDL_ENABLE)
|
||||
|
||||
// undefine to restrict windowed resolutions to conventional sizes
|
||||
#define ANY_WINDOWED_SIZE
|
||||
|
||||
bool screenshot_requested;
|
||||
|
||||
char appactive=1, novideo=0;
|
||||
|
||||
|
||||
void ImGui_Init_Backend()
|
||||
{
|
||||
|
|
|
@ -132,7 +132,7 @@ void D_PostEvent (const event_t *ev)
|
|||
return;
|
||||
}
|
||||
|
||||
if (ev->type == EV_Mouse && GUICapture == 0 && appactive)
|
||||
if (ev->type == EV_Mouse && GUICapture == 0)
|
||||
{
|
||||
inputState.MouseAddToPos(ev->x, -ev->y);
|
||||
return;
|
||||
|
|
|
@ -581,12 +581,5 @@ CVAR(String, m_netport, "19014", CVAR_NOSET)
|
|||
}
|
||||
*/
|
||||
|
||||
/* Baselayer CVARs. Some are pointless, some not worth bothering before the backend is swappewd out, the only relevant one was r_voxels.
|
||||
static osdcvardata_t cvars_engine[] =
|
||||
{
|
||||
{ "r_screenaspect","if using r_usenewaspect and in fullscreen, screen aspect ratio in the form XXYY, e.g. 1609 for 16:9",
|
||||
(void *) &r_screenxy, SCREENASPECT_CVAR_TYPE, 0, 9999 },
|
||||
};
|
||||
*/
|
||||
|
||||
#endif
|
||||
|
|
|
@ -47,11 +47,6 @@ int GUICapture = false;
|
|||
void InputState::GetMouseDelta(ControlInfo * info)
|
||||
{
|
||||
vec2_t input;
|
||||
if (!appactive)
|
||||
{
|
||||
input = {0,0};
|
||||
return;
|
||||
}
|
||||
|
||||
input = g_mousePos;
|
||||
g_mousePos = {};
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
#include "m_joy.h"
|
||||
#include "gamecvars.h"
|
||||
|
||||
extern char appactive;
|
||||
|
||||
typedef uint16_t kb_scancode;
|
||||
extern int GUICapture;
|
||||
|
||||
|
|
|
@ -853,7 +853,6 @@ InitNetVars(void)
|
|||
predictmovefifoplc = 0;
|
||||
|
||||
memset(&syncstat, 0, sizeof(syncstat));
|
||||
syncstate = 0;
|
||||
memset(sync_first, 0, sizeof(sync_first));
|
||||
sync_found = FALSE;
|
||||
|
||||
|
|
|
@ -412,9 +412,6 @@ SyncStatMessage(void)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (syncstate != 0)
|
||||
Printf(PRINT_NOTIFY, "Missed Network packet!", 0);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue