Skip to content

Commit 41a0948

Browse files
committed
Minor cleanup
Cleanups and fixes
1 parent 2c4d95e commit 41a0948

5 files changed

Lines changed: 41 additions & 24 deletions

File tree

docs/changelogs/210rc1.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ General Improvements
169169

170170
+ Revised dynamic lighting, much more natural to their attached objects, and vastly reduced surface areas.
171171

172-
172+
+ Overall improvement of menu systems
173173

174174
New Features
175175
------------
@@ -221,10 +221,16 @@ New Features
221221

222222
- Engine: Screen shaking for melee attacks has been disabled for now
223223

224-
+ New CVARS added: r_oldblend, r_transfix, r_gl3_mode, r_vsync, m_tactile, r_stretchworld, r_spritescale
224+
+ New CVARS added: r_oldblend, r_transfix, r_gl3_mode, r_vsync, m_tactile, r_stretchworld, r_spritescale, r_bloom, r_bloom_amount, r_fxaa, r_fxaa_quality, r_crosscolor, r_crosssize, r_crossbright, r_spriteflip
225225

226226
+ Added more options for the default HUD in DOOM
227227

228+
+ NEW CVARS to control on-screen HUD scaling and pos (values listed are the default):
229+
{ "r_textscale" "0.7" }, //0.7f is the default for HUD_SetScale(). Sets HUD Text Scale. Dupliate for RTS tips.
230+
{ "r_text_xpos" "160" }, // Center text on the X Axis
231+
{ "r_text_ypos"3" }, // Align text on the Y Axis
232+
233+
228234

229235
Known Bugs
230236
------------

src/con_link.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ cvar_link_t all_cvars[] =
152152

153153
{ "soundpitch", &sound_pitch, "c", "1" },
154154

155-
{ "r_oldblend", &r_oldblend, "c", "1"},
155+
{ "r_oldblend", &r_oldblend, "c", "0"},
156156

157157
// If palette incorrectly remaps palette, this can be set.
158158
{ "r_transfix", &r_transfix, "c", "0" },
@@ -178,8 +178,8 @@ cvar_link_t all_cvars[] =
178178

179179
/* Experimental Text Scaling Stuff*/
180180
{ "r_textscale", &r_textscale, "c", "0.7" }, //0.7f is the default for HUD_SetScale(). Sets HUD Text Scale. Dupliate for RTS tips.
181-
{ "r_text_xpos", &r_text_x, "c", "160" }, // THESE TWO VALUES, XPOS AND YPOS, ACTUALLY CENTER THE TEXT BY DEFAULT.
182-
{ "r_text_ypos", &r_text_y, "c", "3" }, // THESE TWO VALUES, XPOS AND YPOS, ACTUALLY CENTER THE TEXT BY DEFAULT.
181+
{ "r_text_xpos", &r_text_x, "c", "160" }, // Center text on the X Axis
182+
{ "r_text_ypos", &r_text_y, "c", "3" }, // Align text on the Y Axis
183183

184184
/* Rendering Stuff */
185185

@@ -200,15 +200,15 @@ cvar_link_t all_cvars[] =
200200
{ "r_precache_sprite", &r_precache_sprite, "c", "1" },
201201
{ "r_precache_model", &r_precache_model, "c", "1" },
202202

203-
{ "r_anisotropy", &r_anisotropy, "c", "0" },
203+
{ "r_anisotropy", &r_anisotropy, "c", "0" },
204204
{ "r_colormaterial",&r_colormaterial, "", "1" },
205205
{ "r_colorlighting",&r_colorlighting, "", "1" },
206206
{ "r_dumbsky", &r_dumbsky, "", "0" },
207207
{ "r_dumbmulti", &r_dumbmulti, "", "0" },
208208
{ "r_dumbcombine", &r_dumbcombine, "", "0" },
209209
{ "r_dumbclamp", &r_dumbclamp, "", "0" },
210-
{ "r_gl3_path", &r_gl3_path, "c", "0" },
211-
{ "r_swapinterval", &r_swapinterval, "", "1" },
210+
{ "r_gl3_path", &r_gl3_path, "c", "0" },
211+
{ "r_swapinterval", &r_swapinterval, "", "1" },
212212

213213
{ "r_gpuswitch", &r_gpuswitch, "c", "0" }, // notebook optimus gpu selector
214214

@@ -231,7 +231,7 @@ cvar_link_t all_cvars[] =
231231
{ "debug_fps", &debug_fps, "c", "0" },
232232
{ "debug_lerp", &debug_testlerp, "c", "0"},
233233

234-
{ "r_md5scale", &r_md5scale, "c", "5" },
234+
{ "r_md5scale", &r_md5scale, "c", "0" },
235235
{ "r_lerp", &r_lerp, "c", "1" },
236236
{ "r_maxfps", &r_maxfps, "c", "0" }, //experimental. . .
237237
{ "r_vsync", &r_vsync, "c", "1" },

src/dm_defs.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ typedef struct gameflags_s
123123
bool shadows;
124124
bool halos;
125125

126+
int g_agression;
127+
126128
bool edge_compat;
127129
bool kicking;
128130
bool weapon_switch;

src/m_option.cc

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ extern cvar_c debug_joyaxis;
127127
extern cvar_c g_aggression;
128128
extern cvar_c m_busywait;
129129
extern cvar_c r_shadows;
130+
extern cvar_c r_textscale;
130131
extern cvar_c r_bloom;
131132
extern cvar_c r_lens;
132133
extern cvar_c sound_pitch;
@@ -429,22 +430,22 @@ static optmenuitem_t vidoptions[] =
429430
{OPT_Switch , "Detail Level", Details, 3, &detail_level, M_ChangeMipMap, NULL},
430431
{OPT_Switch, "Texture Filtering", MipMaps, 3, &var_mipmapping, M_ChangeMipMap, NULL},
431432
{ OPT_Plain, "", NULL, 0, NULL, NULL, NULL },
432-
{ OPT_Plain, "", NULL, 0, NULL, NULL, NULL },
433+
//{OPT_Slider, "HUD Text Scale", HudT, 20, &r_textscale, M_ChangeHUDTextScale, "Set overall scale of HUD text" },
433434
{OPT_Boolean, "Show Disk Icon", YesNo, 1, &m_diskicon, NULL, NULL},
434435
//{OPT_Slider, "HUD Text Scale", HudT, 20, &r_textscale, NULL, "Experimental"},
435-
{OPT_Boolean, "Screen Shake", YesNo, 1, &m_tactile, NULL, NULL },
436+
{OPT_Boolean, "Screen Shake", YesNo, 1, &m_tactile, NULL, "Will also affect user-defined values in COAL!"},
436437
{OPT_Switch, "Crosshair", CrossH, 10, &menu_crosshair, M_ChangeCrossHair, NULL},
437438
{OPT_Slider, "Crosshair Scale", NULL, 15, &menu_crosshair2, M_ChangeCrossHairSize, NULL }, /// -- New Crosshair Size Slider (like Global MD5 Scale), define this in LDF!
438439
{OPT_Plain, "", NULL, 0, NULL, NULL, NULL },
439440
{OPT_Boolean, "Map Rotation", YesNo, 2, &rotatemap, NULL, NULL},
440-
{OPT_Switch, "Teleport Flash", YesNo, 2, &telept_flash, NULL, NULL},
441+
{OPT_Switch, "Teleport Flash", YesNo, 2, &telept_flash, NULL, "Show a Teleport Flash?"},
441442
{OPT_Switch, "Teleport Effect", TeleEff, 3, &telept_effect, NULL, NULL},
442443
{OPT_Switch, "Wipe method", WIPE_EnumStr, WIPE_NUMWIPES, &wipe_method, NULL, NULL},
443444
};
444445

445446
static optmenuitem_t advancedoptions[] =
446447
{
447-
{OPT_Switch, "OpenGL 3 Mode", YesNo, 2, &r_gl3_path, NULL, "OpenGL defaults to 1.x (off)"}, /// Change from GL1 to GL3
448+
{OPT_Switch, "GL3 Features", YesNo, 2, &r_gl3_path, NULL, "Toggles advanced features (normals, per-pixel lighting, etc)"}, /// Change from GL1 to GL3
448449
{ OPT_Plain, "", NULL, 0, NULL, NULL, NULL },
449450
{OPT_Switch, "Bloom Processing", YesNo, 2, &r_bloom, NULL, "Toggle Bloom Shader On or Off"},
450451
{OPT_Plain, "", NULL, 0, NULL, NULL, NULL },
@@ -469,7 +470,7 @@ static optmenuitem_t advancedoptions[] =
469470

470471
static optmenuitem_t debuggingoptions[] =
471472
{
472-
{ OPT_Plain, "<---Debugging--->", NULL, 0, NULL, NULL, NULL },
473+
{ OPT_Plain, "<---Debugging--->", NULL, 0, NULL, NULL, "Various useful options for developers"},
473474
{ OPT_Plain, "", NULL, 0, NULL, NULL, NULL },
474475
{ OPT_Switch, "Framerate Info", YesNo, 2, &debug_fps, NULL, NULL },
475476
{ OPT_Plain, "", NULL, 0, NULL, NULL, NULL },
@@ -531,7 +532,7 @@ static optmenuitem_t resoptions[] =
531532
{OPT_Function, "New Mode", NULL, 0, NULL, M_ChangeResFull, NULL},
532533
{OPT_Plain, "", NULL, 0, NULL, NULL, NULL},
533534
{OPT_Function, "Set Resolution", NULL, 0, NULL, M_OptionSetResolution, NULL},
534-
/* {OPT_Function, "Test Resolution", NULL, 0, NULL, M_OptionTestResolution, NULL}, */
535+
//{OPT_Function, "Test Resolution", NULL, 0, NULL, M_OptionTestResolution, NULL},
535536
{OPT_Plain, "", NULL, 0, NULL, NULL, NULL},
536537
{OPT_Plain, "", NULL, 0, NULL, NULL, NULL},
537538
{OPT_Plain, "", NULL, 0, NULL, NULL, NULL}
@@ -607,7 +608,7 @@ static optmenuitem_t soundoptions[] =
607608
//{OPT_Switch, "Sample Rate", SampleRates, 6, &var_sample_rate, NULL, "NeedRestart"},
608609
//{OPT_Switch, "Sample Size", SoundBits, 3, &var_sound_bits, NULL, "NeedRestart"},
609610
{OPT_Switch, "Stereo", StereoNess, 3, &var_sound_stereo, NULL, "NeedRestart"},
610-
{ OPT_Switch, "Music Device", MusicDevs, 3, &var_music_dev, NULL, "Win32: SYSTEM will not work with Vista or higher!" },
611+
{OPT_Switch, "Music Device", MusicDevs, 3, &var_music_dev, NULL, "Choose Music Device Playback [default OPL]" },
611612

612613
{ OPT_Plain, "", NULL, 0, NULL, NULL, NULL },
613614
{OPT_Boolean, "Sound Pitching", SoundPitching, 2, &sound_pitch, NULL, "Emulate Doom 1.2 Random SFX Pitching"},
@@ -672,14 +673,15 @@ static optmenuitem_t playoptions[] =
672673
{OPT_Boolean, "Shoot-Through Scenery", YesNo, 2,
673674
&global_flags.pass_missile, M_ChangePassMissile, NULL},
674675

675-
{OPT_Plain, "Monster Aggression", YesNo, 2,
676-
&g_aggression, NULL, "Aggressive Monsters (EDGE feature)!"},
676+
{OPT_Boolean, "Monster Aggression", YesNo, 2,
677+
&global_flags.g_agression, NULL, "Aggressive Monsters (EDGE feature)!"},
678+
679+
{OPT_Boolean, "Shadows", YesNo, 2,
680+
&global_flags.shadows, M_ChangeShadows, NULL},
677681

678682
{OPT_Slider, "Gravity", NULL, 20,
679683
&global_flags.menu_grav, NULL, "Gravity"},
680684

681-
{OPT_Plain, "", NULL, 0, NULL, NULL, NULL},
682-
683685
{OPT_Boolean, "Enemy Respawn Mode", Respw, 2,
684686
&global_flags.res_respawn, M_ChangeMonsterRespawn, NULL},
685687

@@ -790,6 +792,8 @@ static optmenuitem_t other_keyconfig[] =
790792
{OPT_KeyConfig, "Pause", NULL, 0, &key_pause, NULL, NULL},
791793
{OPT_KeyConfig, "Action 1", NULL, 0, &key_action1, NULL, NULL},
792794
{OPT_KeyConfig, "Action 2", NULL, 0, &key_action2, NULL, NULL},
795+
{OPT_KeyConfig, "Action 3", NULL, 0, &key_action3, NULL, NULL},
796+
{OPT_KeyConfig, "Action 4", NULL, 0, &key_action4, NULL, NULL},
793797

794798
/// {OPT_KeyConfig, "Multiplayer Talk", NULL, 0, &key_talk, NULL, NULL},
795799
};
@@ -1873,14 +1877,19 @@ static void M_ChangeCrossHair(int keypressed)
18731877
r_crosshair = menu_crosshair;
18741878
}
18751879

1880+
static void M_ChangeAgression(int keypressed)
1881+
{
1882+
g_aggression = global_flags.g_agression;
1883+
}
1884+
18761885
static void M_ChangeCrossHairSize(int keypressed)
18771886
{
18781887
r_crosssize = menu_crosshair2;
18791888
}
18801889

1881-
#if 0
1890+
#if 1
18821891
// Trying new user-defined scaling code for Heads-Up Display Text.
1883-
extern void HUD_SetScale(float scale);
1892+
//extern void HUD_SetScale(float scale);
18841893
static void M_ChangeHUDTextScale(int keypressed)
18851894
{
18861895
float scale;

src/r_main.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ driver_bug_t;
8686

8787
static const driver_bug_t driver_bugs[] =
8888
{
89-
{ "Radeon", NULL, NULL, PFT_LIGHTING | PFT_COLOR_MAT, 0 },
90-
{ "RADEON", NULL, NULL, PFT_LIGHTING | PFT_COLOR_MAT, 0 },
89+
//{ "Radeon", NULL, NULL, PFT_LIGHTING | PFT_COLOR_MAT, 0 },
90+
//{ "RADEON", NULL, NULL, PFT_LIGHTING | PFT_COLOR_MAT, 0 },
9191

9292
// { "R200", NULL, "Mesa 6.4", PFT_VERTEX_ARRAY, 0 },
9393
// { "R200", NULL, "Mesa 6.5", PFT_VERTEX_ARRAY, 0 },

0 commit comments

Comments
 (0)