mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Merge branch 'kill-dead-shit' into 'master'
Remove some unused code See merge request KartKrew/Kart!1420
This commit is contained in:
commit
148b56eccf
9 changed files with 0 additions and 109 deletions
|
|
@ -242,11 +242,6 @@ static void Command_Eval(void);
|
||||||
|
|
||||||
static CV_PossibleValue_t usemouse_cons_t[] = {{0, "Off"}, {1, "On"}, {2, "Force"}, {0, NULL}};
|
static CV_PossibleValue_t usemouse_cons_t[] = {{0, "Off"}, {1, "On"}, {2, "Force"}, {0, NULL}};
|
||||||
|
|
||||||
#ifdef LJOYSTICK
|
|
||||||
static CV_PossibleValue_t joyport_cons_t[] = {{1, "/dev/js0"}, {2, "/dev/js1"}, {3, "/dev/js2"},
|
|
||||||
{4, "/dev/js3"}, {0, NULL}};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static CV_PossibleValue_t teamscramble_cons_t[] = {{0, "Off"}, {1, "Random"}, {2, "Points"}, {0, NULL}};
|
static CV_PossibleValue_t teamscramble_cons_t[] = {{0, "Off"}, {1, "Random"}, {2, "Points"}, {0, NULL}};
|
||||||
|
|
||||||
static CV_PossibleValue_t startingliveslimit_cons_t[] = {{1, "MIN"}, {99, "MAX"}, {0, NULL}};
|
static CV_PossibleValue_t startingliveslimit_cons_t[] = {{1, "MIN"}, {99, "MAX"}, {0, NULL}};
|
||||||
|
|
@ -344,7 +339,6 @@ consvar_t cv_skipmapcheck = CVAR_INIT ("skipmapcheck", "Off", CV_SAVE, CV_OnOff,
|
||||||
|
|
||||||
consvar_t cv_usemouse = CVAR_INIT ("use_mouse", "Off", CV_SAVE|CV_CALL,usemouse_cons_t, I_StartupMouse);
|
consvar_t cv_usemouse = CVAR_INIT ("use_mouse", "Off", CV_SAVE|CV_CALL,usemouse_cons_t, I_StartupMouse);
|
||||||
|
|
||||||
#if (defined (LJOYSTICK) || defined (HAVE_SDL))
|
|
||||||
consvar_t cv_joyscale[MAXSPLITSCREENPLAYERS] = {
|
consvar_t cv_joyscale[MAXSPLITSCREENPLAYERS] = {
|
||||||
CVAR_INIT ("padscale", "1", CV_SAVE|CV_CALL, NULL, I_JoyScale),
|
CVAR_INIT ("padscale", "1", CV_SAVE|CV_CALL, NULL, I_JoyScale),
|
||||||
CVAR_INIT ("padscale2", "1", CV_SAVE|CV_CALL, NULL, I_JoyScale2),
|
CVAR_INIT ("padscale2", "1", CV_SAVE|CV_CALL, NULL, I_JoyScale2),
|
||||||
|
|
@ -352,23 +346,6 @@ consvar_t cv_joyscale[MAXSPLITSCREENPLAYERS] = {
|
||||||
CVAR_INIT ("padscale4", "1", CV_SAVE|CV_CALL, NULL, I_JoyScale4)
|
CVAR_INIT ("padscale4", "1", CV_SAVE|CV_CALL, NULL, I_JoyScale4)
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef LJOYSTICK
|
|
||||||
consvar_t cv_joyport[MAXSPLITSCREENPLAYERS] = { //Alam: for later
|
|
||||||
CVAR_INIT ("padport", "/dev/js0", CV_SAVE, joyport_cons_t, NULL),
|
|
||||||
CVAR_INIT ("padport2", "/dev/js0", CV_SAVE, joyport_cons_t, NULL),
|
|
||||||
CVAR_INIT ("padport3", "/dev/js0", CV_SAVE, joyport_cons_t, NULL),
|
|
||||||
CVAR_INIT ("padport4", "/dev/js0", CV_SAVE, joyport_cons_t, NULL)
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
consvar_t cv_joyscale[MAXSPLITSCREENPLAYERS] = { //Alam: Dummy for save
|
|
||||||
CVAR_INIT ("padscale", "1", CV_SAVE|CV_HIDEN, NULL, NULL),
|
|
||||||
CVAR_INIT ("padscale2", "1", CV_SAVE|CV_HIDEN, NULL, NULL),
|
|
||||||
CVAR_INIT ("padscale3", "1", CV_SAVE|CV_HIDEN, NULL, NULL),
|
|
||||||
CVAR_INIT ("padscale4", "1", CV_SAVE|CV_HIDEN, NULL, NULL)
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// SRB2kart
|
// SRB2kart
|
||||||
consvar_t cv_items[NUMKARTRESULTS-1] = {
|
consvar_t cv_items[NUMKARTRESULTS-1] = {
|
||||||
CVAR_INIT ("sneaker", "On", CV_NETVAR, CV_OnOff, NULL),
|
CVAR_INIT ("sneaker", "On", CV_NETVAR, CV_OnOff, NULL),
|
||||||
|
|
@ -1079,9 +1056,6 @@ void D_RegisterClientCommands(void)
|
||||||
for (i = 0; i < MAXSPLITSCREENPLAYERS; i++)
|
for (i = 0; i < MAXSPLITSCREENPLAYERS; i++)
|
||||||
{
|
{
|
||||||
CV_RegisterVar(&cv_joyscale[i]);
|
CV_RegisterVar(&cv_joyscale[i]);
|
||||||
#ifdef LJOYSTICK
|
|
||||||
CV_RegisterVar(&cv_joyport[i]);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// s_sound.c
|
// s_sound.c
|
||||||
|
|
@ -1102,12 +1076,6 @@ void D_RegisterClientCommands(void)
|
||||||
|
|
||||||
CV_RegisterVar(&cv_soundtest);
|
CV_RegisterVar(&cv_soundtest);
|
||||||
|
|
||||||
CV_RegisterVar(&cv_invincmusicfade);
|
|
||||||
CV_RegisterVar(&cv_growmusicfade);
|
|
||||||
|
|
||||||
CV_RegisterVar(&cv_resetspecialmusic);
|
|
||||||
|
|
||||||
CV_RegisterVar(&cv_resume);
|
|
||||||
CV_RegisterVar(&cv_perfstats);
|
CV_RegisterVar(&cv_perfstats);
|
||||||
|
|
||||||
// ingame object placing
|
// ingame object placing
|
||||||
|
|
|
||||||
|
|
@ -48,9 +48,6 @@ extern consvar_t cv_splitplayers;
|
||||||
extern consvar_t cv_seenames;
|
extern consvar_t cv_seenames;
|
||||||
extern consvar_t cv_usemouse;
|
extern consvar_t cv_usemouse;
|
||||||
extern consvar_t cv_joyscale[MAXSPLITSCREENPLAYERS];
|
extern consvar_t cv_joyscale[MAXSPLITSCREENPLAYERS];
|
||||||
#ifdef LJOYSTICK
|
|
||||||
extern consvar_t cv_joyport[MAXSPLITSCREENPLAYERS];
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// normally in p_mobj but the .h is not read
|
// normally in p_mobj but the .h is not read
|
||||||
extern consvar_t cv_itemrespawntime;
|
extern consvar_t cv_itemrespawntime;
|
||||||
|
|
|
||||||
|
|
@ -398,13 +398,6 @@ consvar_t cv_pauseifunfocused = CVAR_INIT ("pauseifunfocused", "Yes", CV_SAVE, C
|
||||||
// Display song credits
|
// Display song credits
|
||||||
consvar_t cv_songcredits = CVAR_INIT ("songcredits", "On", CV_SAVE, CV_OnOff, NULL);
|
consvar_t cv_songcredits = CVAR_INIT ("songcredits", "On", CV_SAVE, CV_OnOff, NULL);
|
||||||
|
|
||||||
consvar_t cv_invincmusicfade = CVAR_INIT ("invincmusicfade", "300", CV_SAVE, CV_Unsigned, NULL);
|
|
||||||
consvar_t cv_growmusicfade = CVAR_INIT ("growmusicfade", "500", CV_SAVE, CV_Unsigned, NULL);
|
|
||||||
|
|
||||||
consvar_t cv_resetspecialmusic = CVAR_INIT ("resetspecialmusic", "Yes", CV_SAVE, CV_YesNo, NULL);
|
|
||||||
|
|
||||||
consvar_t cv_resume = CVAR_INIT ("resume", "Yes", CV_SAVE, CV_YesNo, NULL);
|
|
||||||
|
|
||||||
consvar_t cv_kickstartaccel[MAXSPLITSCREENPLAYERS] = {
|
consvar_t cv_kickstartaccel[MAXSPLITSCREENPLAYERS] = {
|
||||||
CVAR_INIT ("kickstartaccel", "Off", CV_SAVE|CV_CALL, CV_OnOff, weaponPrefChange),
|
CVAR_INIT ("kickstartaccel", "Off", CV_SAVE|CV_CALL, CV_OnOff, weaponPrefChange),
|
||||||
CVAR_INIT ("kickstartaccel2", "Off", CV_SAVE|CV_CALL, CV_OnOff, weaponPrefChange2),
|
CVAR_INIT ("kickstartaccel2", "Off", CV_SAVE|CV_CALL, CV_OnOff, weaponPrefChange2),
|
||||||
|
|
|
||||||
|
|
@ -101,13 +101,6 @@ extern consvar_t cv_deadzone[MAXSPLITSCREENPLAYERS];
|
||||||
|
|
||||||
extern consvar_t cv_ghost_besttime, cv_ghost_bestlap, cv_ghost_last, cv_ghost_guest, cv_ghost_staff;
|
extern consvar_t cv_ghost_besttime, cv_ghost_bestlap, cv_ghost_last, cv_ghost_guest, cv_ghost_staff;
|
||||||
|
|
||||||
extern consvar_t cv_invincmusicfade;
|
|
||||||
extern consvar_t cv_growmusicfade;
|
|
||||||
|
|
||||||
extern consvar_t cv_resetspecialmusic;
|
|
||||||
|
|
||||||
extern consvar_t cv_resume;
|
|
||||||
|
|
||||||
// mouseaiming (looking up/down with the mouse or keyboard)
|
// mouseaiming (looking up/down with the mouse or keyboard)
|
||||||
#define KB_LOOKSPEED (1<<25)
|
#define KB_LOOKSPEED (1<<25)
|
||||||
#define MAXPLMOVE (50)
|
#define MAXPLMOVE (50)
|
||||||
|
|
|
||||||
|
|
@ -151,7 +151,6 @@ static void ChaseCam2_OnChange(void);
|
||||||
static void ChaseCam3_OnChange(void);
|
static void ChaseCam3_OnChange(void);
|
||||||
static void ChaseCam4_OnChange(void);
|
static void ChaseCam4_OnChange(void);
|
||||||
|
|
||||||
consvar_t cv_tailspickup = CVAR_INIT ("tailspickup", "On", CV_NETVAR|CV_NOSHOWHELP, CV_OnOff, NULL);
|
|
||||||
consvar_t cv_chasecam[MAXSPLITSCREENPLAYERS] = {
|
consvar_t cv_chasecam[MAXSPLITSCREENPLAYERS] = {
|
||||||
CVAR_INIT ("chasecam", "On", CV_CALL, CV_OnOff, ChaseCam_OnChange),
|
CVAR_INIT ("chasecam", "On", CV_CALL, CV_OnOff, ChaseCam_OnChange),
|
||||||
CVAR_INIT ("chasecam2", "On", CV_CALL, CV_OnOff, ChaseCam2_OnChange),
|
CVAR_INIT ("chasecam2", "On", CV_CALL, CV_OnOff, ChaseCam2_OnChange),
|
||||||
|
|
@ -181,8 +180,6 @@ consvar_t cv_homremoval = CVAR_INIT ("homremoval", "Yes", CV_SAVE, homremoval_co
|
||||||
|
|
||||||
consvar_t cv_maxportals = CVAR_INIT ("maxportals", "2", CV_SAVE, maxportals_cons_t, NULL);
|
consvar_t cv_maxportals = CVAR_INIT ("maxportals", "2", CV_SAVE, maxportals_cons_t, NULL);
|
||||||
|
|
||||||
consvar_t cv_renderstats = CVAR_INIT ("renderstats", "Off", 0, CV_OnOff, NULL);
|
|
||||||
|
|
||||||
consvar_t cv_drawpickups = CVAR_INIT ("drawpickups", "Yes", CV_CHEAT, CV_YesNo, NULL);
|
consvar_t cv_drawpickups = CVAR_INIT ("drawpickups", "Yes", CV_CHEAT, CV_YesNo, NULL);
|
||||||
|
|
||||||
consvar_t cv_debugfinishline = CVAR_INIT ("debugfinishline", "Off", CV_CHEAT, CV_OnOff, NULL);
|
consvar_t cv_debugfinishline = CVAR_INIT ("debugfinishline", "Off", CV_CHEAT, CV_OnOff, NULL);
|
||||||
|
|
@ -1693,7 +1690,6 @@ void R_RegisterEngineStuff(void)
|
||||||
UINT8 i;
|
UINT8 i;
|
||||||
|
|
||||||
CV_RegisterVar(&cv_gravity);
|
CV_RegisterVar(&cv_gravity);
|
||||||
CV_RegisterVar(&cv_tailspickup);
|
|
||||||
CV_RegisterVar(&cv_allowmlook);
|
CV_RegisterVar(&cv_allowmlook);
|
||||||
CV_RegisterVar(&cv_homremoval);
|
CV_RegisterVar(&cv_homremoval);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -133,7 +133,6 @@ extern consvar_t cv_ffloorclip;
|
||||||
extern consvar_t cv_drawdist, cv_drawdist_precip;
|
extern consvar_t cv_drawdist, cv_drawdist_precip;
|
||||||
extern consvar_t cv_fov[MAXSPLITSCREENPLAYERS];
|
extern consvar_t cv_fov[MAXSPLITSCREENPLAYERS];
|
||||||
extern consvar_t cv_skybox;
|
extern consvar_t cv_skybox;
|
||||||
extern consvar_t cv_tailspickup;
|
|
||||||
extern consvar_t cv_drawpickups;
|
extern consvar_t cv_drawpickups;
|
||||||
extern consvar_t cv_debugfinishline;
|
extern consvar_t cv_debugfinishline;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -59,12 +59,6 @@ static void GameDigiMusic_OnChange(void);
|
||||||
static void PlayMusicIfUnfocused_OnChange(void);
|
static void PlayMusicIfUnfocused_OnChange(void);
|
||||||
static void PlaySoundIfUnfocused_OnChange(void);
|
static void PlaySoundIfUnfocused_OnChange(void);
|
||||||
|
|
||||||
#ifdef HAVE_OPENMPT
|
|
||||||
static void ModFilter_OnChange(void);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
consvar_t cv_samplerate = CVAR_INIT ("samplerate", "22050", 0, CV_Unsigned, NULL); //Alam: For easy hacking?
|
|
||||||
|
|
||||||
// stereo reverse
|
// stereo reverse
|
||||||
consvar_t stereoreverse = CVAR_INIT ("stereoreverse", "Off", CV_SAVE, CV_OnOff, NULL);
|
consvar_t stereoreverse = CVAR_INIT ("stereoreverse", "Off", CV_SAVE, CV_OnOff, NULL);
|
||||||
|
|
||||||
|
|
@ -93,26 +87,10 @@ consvar_t cv_closedcaptioning = CVAR_INIT ("closedcaptioning", "Off", CV_SAVE|CV
|
||||||
consvar_t cv_gamedigimusic = CVAR_INIT ("music", "On", CV_SAVE|CV_CALL|CV_NOINIT, CV_OnOff, GameDigiMusic_OnChange);
|
consvar_t cv_gamedigimusic = CVAR_INIT ("music", "On", CV_SAVE|CV_CALL|CV_NOINIT, CV_OnOff, GameDigiMusic_OnChange);
|
||||||
consvar_t cv_gamesounds = CVAR_INIT ("sounds", "On", CV_SAVE|CV_CALL|CV_NOINIT, CV_OnOff, GameSounds_OnChange);
|
consvar_t cv_gamesounds = CVAR_INIT ("sounds", "On", CV_SAVE|CV_CALL|CV_NOINIT, CV_OnOff, GameSounds_OnChange);
|
||||||
|
|
||||||
static CV_PossibleValue_t music_resync_threshold_cons_t[] = {
|
|
||||||
{0, "MIN"},
|
|
||||||
{1000, "MAX"},
|
|
||||||
{0, NULL}
|
|
||||||
};
|
|
||||||
|
|
||||||
consvar_t cv_music_resync_threshold = CVAR_INIT ("music_resync_threshold", "100", CV_SAVE|CV_CALL, music_resync_threshold_cons_t, I_UpdateSongLagThreshold);
|
|
||||||
consvar_t cv_music_resync_powerups_only = CVAR_INIT ("music_resync_powerups_only", "No", CV_SAVE|CV_CALL, CV_YesNo, I_UpdateSongLagConditions);
|
|
||||||
|
|
||||||
// Window focus sound sytem toggles
|
// Window focus sound sytem toggles
|
||||||
consvar_t cv_playmusicifunfocused = CVAR_INIT ("playmusicifunfocused", "No", CV_SAVE|CV_CALL|CV_NOINIT, CV_YesNo, PlayMusicIfUnfocused_OnChange);
|
consvar_t cv_playmusicifunfocused = CVAR_INIT ("playmusicifunfocused", "No", CV_SAVE|CV_CALL|CV_NOINIT, CV_YesNo, PlayMusicIfUnfocused_OnChange);
|
||||||
consvar_t cv_playsoundifunfocused = CVAR_INIT ("playsoundsifunfocused", "No", CV_SAVE|CV_CALL|CV_NOINIT, CV_YesNo, PlaySoundIfUnfocused_OnChange);
|
consvar_t cv_playsoundifunfocused = CVAR_INIT ("playsoundsifunfocused", "No", CV_SAVE|CV_CALL|CV_NOINIT, CV_YesNo, PlaySoundIfUnfocused_OnChange);
|
||||||
|
|
||||||
#ifdef HAVE_OPENMPT
|
|
||||||
openmpt_module *openmpt_mhandle = NULL;
|
|
||||||
|
|
||||||
static CV_PossibleValue_t interpolationfilter_cons_t[] = {{0, "Default"}, {1, "None"}, {2, "Linear"}, {4, "Cubic"}, {8, "Windowed sinc"}, {0, NULL}};
|
|
||||||
consvar_t cv_modfilter = CVAR_INIT ("modfilter", "0", CV_SAVE|CV_CALL, interpolationfilter_cons_t, ModFilter_OnChange);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define S_MAX_VOLUME 127
|
#define S_MAX_VOLUME 127
|
||||||
|
|
||||||
// when to clip out sounds
|
// when to clip out sounds
|
||||||
|
|
@ -249,19 +227,11 @@ void S_RegisterSoundStuff(void)
|
||||||
CV_RegisterVar(&precachesound);
|
CV_RegisterVar(&precachesound);
|
||||||
|
|
||||||
CV_RegisterVar(&surround);
|
CV_RegisterVar(&surround);
|
||||||
CV_RegisterVar(&cv_samplerate);
|
|
||||||
CV_RegisterVar(&cv_playsoundifunfocused);
|
CV_RegisterVar(&cv_playsoundifunfocused);
|
||||||
CV_RegisterVar(&cv_playmusicifunfocused);
|
CV_RegisterVar(&cv_playmusicifunfocused);
|
||||||
CV_RegisterVar(&cv_gamesounds);
|
CV_RegisterVar(&cv_gamesounds);
|
||||||
CV_RegisterVar(&cv_gamedigimusic);
|
CV_RegisterVar(&cv_gamedigimusic);
|
||||||
|
|
||||||
CV_RegisterVar(&cv_music_resync_threshold);
|
|
||||||
CV_RegisterVar(&cv_music_resync_powerups_only);
|
|
||||||
|
|
||||||
#ifdef HAVE_OPENMPT
|
|
||||||
CV_RegisterVar(&cv_modfilter);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
COM_AddCommand("tunes", Command_Tunes_f);
|
COM_AddCommand("tunes", Command_Tunes_f);
|
||||||
COM_AddCommand("restartaudio", Command_RestartAudio_f);
|
COM_AddCommand("restartaudio", Command_RestartAudio_f);
|
||||||
COM_AddCommand("playsound", Command_PlaySound);
|
COM_AddCommand("playsound", Command_PlaySound);
|
||||||
|
|
@ -2509,11 +2479,3 @@ static void PlaySoundIfUnfocused_OnChange(void)
|
||||||
if (window_notinfocus && !cv_playsoundifunfocused.value)
|
if (window_notinfocus && !cv_playsoundifunfocused.value)
|
||||||
S_StopSounds();
|
S_StopSounds();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_OPENMPT
|
|
||||||
void ModFilter_OnChange(void)
|
|
||||||
{
|
|
||||||
if (openmpt_mhandle)
|
|
||||||
openmpt_module_set_render_param(openmpt_mhandle, OPENMPT_MODULE_RENDER_INTERPOLATIONFILTER_LENGTH, cv_modfilter.value);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -19,18 +19,10 @@
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
#include "tables.h" // angle_t
|
#include "tables.h" // angle_t
|
||||||
|
|
||||||
#ifdef HAVE_OPENMPT
|
|
||||||
#include "libopenmpt/libopenmpt.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_OPENMPT
|
|
||||||
extern openmpt_module *openmpt_mhandle;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// mask used to indicate sound origin is player item pickup
|
// mask used to indicate sound origin is player item pickup
|
||||||
#define PICKUP_SOUND 0x8000
|
#define PICKUP_SOUND 0x8000
|
||||||
|
|
||||||
|
|
@ -52,13 +44,6 @@ extern consvar_t cv_gamesounds;
|
||||||
extern consvar_t cv_playmusicifunfocused;
|
extern consvar_t cv_playmusicifunfocused;
|
||||||
extern consvar_t cv_playsoundifunfocused;
|
extern consvar_t cv_playsoundifunfocused;
|
||||||
|
|
||||||
extern consvar_t cv_music_resync_threshold;
|
|
||||||
extern consvar_t cv_music_resync_powerups_only;
|
|
||||||
|
|
||||||
#ifdef HAVE_OPENMPT
|
|
||||||
extern consvar_t cv_modfilter;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern CV_PossibleValue_t soundvolume_cons_t[];
|
extern CV_PossibleValue_t soundvolume_cons_t[];
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,6 @@ rendermode_t chosenrendermode = render_none; // set by command line arguments
|
||||||
|
|
||||||
// synchronize page flipping with screen refresh
|
// synchronize page flipping with screen refresh
|
||||||
consvar_t cv_vidwait = CVAR_INIT ("vid_wait", "Off", CV_SAVE, CV_OnOff, NULL);
|
consvar_t cv_vidwait = CVAR_INIT ("vid_wait", "Off", CV_SAVE, CV_OnOff, NULL);
|
||||||
static consvar_t cv_stretch = CVAR_INIT ("stretch", "Off", CV_SAVE|CV_NOSHOWHELP, CV_OnOff, NULL);
|
|
||||||
static consvar_t cv_alwaysgrabmouse = CVAR_INIT ("alwaysgrabmouse", "Off", CV_SAVE, CV_OnOff, NULL);
|
static consvar_t cv_alwaysgrabmouse = CVAR_INIT ("alwaysgrabmouse", "Off", CV_SAVE, CV_OnOff, NULL);
|
||||||
|
|
||||||
UINT8 graphics_started = 0; // Is used in console.c and screen.c
|
UINT8 graphics_started = 0; // Is used in console.c and screen.c
|
||||||
|
|
@ -1606,7 +1605,6 @@ void I_StartupGraphics(void)
|
||||||
COM_AddCommand ("vid_modelist", VID_Command_ModeList_f);
|
COM_AddCommand ("vid_modelist", VID_Command_ModeList_f);
|
||||||
COM_AddCommand ("vid_mode", VID_Command_Mode_f);
|
COM_AddCommand ("vid_mode", VID_Command_Mode_f);
|
||||||
CV_RegisterVar (&cv_vidwait);
|
CV_RegisterVar (&cv_vidwait);
|
||||||
CV_RegisterVar (&cv_stretch);
|
|
||||||
CV_RegisterVar (&cv_alwaysgrabmouse);
|
CV_RegisterVar (&cv_alwaysgrabmouse);
|
||||||
disable_mouse = static_cast<SDL_bool>(M_CheckParm("-nomouse"));
|
disable_mouse = static_cast<SDL_bool>(M_CheckParm("-nomouse"));
|
||||||
disable_fullscreen = M_CheckParm("-win") ? SDL_TRUE : SDL_FALSE;
|
disable_fullscreen = M_CheckParm("-win") ? SDL_TRUE : SDL_FALSE;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue