Skip to content

Commit

Permalink
Added jDoom64: Cvar "hud-title-nomidway" hide the map author string s…
Browse files Browse the repository at this point in the history
…hown at level start if it is "Midway".
  • Loading branch information
danij committed Nov 30, 2008
1 parent c93d268 commit 7cca7c9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions doomsday/plugins/jdoom64/data/conhelp.txt
Expand Up @@ -697,6 +697,9 @@ desc = View window size (3-13).
[hud-title]
desc = 1=Show map title and author in the beginning.

[hud-title-nomidway]
desc = 1=Don't show map author if it's \"Midway\".

[view-bob-height]
desc = Scale for viewheight bobbing.

Expand Down
2 changes: 1 addition & 1 deletion doomsday/plugins/jdoom64/include/d_config.h
Expand Up @@ -113,7 +113,7 @@ typedef struct jdoom64_config_s {
byte weaponRecoil; // jd64
byte secretMsg;
int plrViewHeight;
byte mapTitle;
byte mapTitle, hideAuthorMidway;
float menuColor[3];
float menuColor2[3];
byte noCoopDamage;
Expand Down
1 change: 1 addition & 0 deletions doomsday/plugins/jdoom64/src/d_console.c
Expand Up @@ -92,6 +92,7 @@ cvar_t gameCVars[] = {
// View/Refresh
{"view-size", CVF_PROTECTED, CVT_INT, &cfg.screenBlocks, 3, 11},
{"hud-title", 0, CVT_BYTE, &cfg.mapTitle, 0, 1},
{"hud-title-nomidway", 0, CVT_BYTE, &cfg.hideAuthorMidway, 0, 1},

{"view-bob-height", 0, CVT_FLOAT, &cfg.bobView, 0, 1},
{"view-bob-weapon", 0, CVT_FLOAT, &cfg.bobWeapon, 0, 1},
Expand Down
1 change: 1 addition & 0 deletions doomsday/plugins/jdoom64/src/d_main.c
Expand Up @@ -299,6 +299,7 @@ void G_PreInit(void)
cfg.netGravity = -1; // Use map default.
cfg.plrViewHeight = 54;
cfg.mapTitle = true;
cfg.hideAuthorMidway = true;
cfg.menuColor[0] = 1;
cfg.menuColor2[0] = 1;
cfg.menuSlam = false;
Expand Down
3 changes: 2 additions & 1 deletion doomsday/plugins/jdoom64/src/d_refresh.c
Expand Up @@ -189,7 +189,8 @@ void R_DrawMapTitle(void)
}

DGL_Color4f(.5f, .5f, .5f, alpha);
if(lauthor && W_IsFromIWAD(mapNamePatches[mapnum].lump))
if(lauthor && W_IsFromIWAD(mapNamePatches[mapnum].lump) &&
(!cfg.hideAuthorMidway || stricmp(lauthor, "Midway")))
{
M_WriteText2(160 - M_StringWidth(lauthor, huFontA) / 2, y, lauthor,
huFontA, -1, -1, -1, -1);
Expand Down

0 comments on commit 7cca7c9

Please sign in to comment.