Skip to content

Commit 1015e3d

Browse files
committed
Bring back BIGDOOR1 fix
But for unmodified DOOM only.
1 parent 15298ed commit 1015e3d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

releasenotes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
* Obituaries are now still recorded every time something is killed when the `obituaries` CVAR is `off`, but are just not displayed in the console.
5151
* Changing the `con_warninglevel` CVAR will now cause all previously generated warnings in the console to appear or disappear accordingly.
5252
* Wildcard expressions now work correctly with the `reset` CCMD to reset multiple CVARs at once.
53+
* The `BIGDOOR1` texture is now vertically aligned correctly.
5354
* A bug is fixed whereby the player’s weapon could bleed from the right side of the screen to the left in some rare instances.
5455

5556
![](https://github.com/bradharding/www.doomretro.com/raw/master/wiki/bigdivider.png)

src/r_patch.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
static rpatch_t *patches;
5252
static rpatch_t *texturecomposites;
5353

54+
static short BIGDOOR1;
5455
static short BIGDOOR7;
5556
static short FIREBLU1;
5657
static short SKY1;
@@ -369,6 +370,8 @@ static void CreateTextureCompositePatch(const int id)
369370
// [BH] use incorrect y-origin for certain textures
370371
if (id == BIGDOOR7 || id == FIREBLU1 || id == SKY1 || (id == STEP2 && modifiedgame) || id == TEKWALL1)
371372
oy = 0;
373+
else if (id == BIGDOOR1 && gamemission == doom && !modifiedgame)
374+
oy += 32;
372375
else if (countsincolumn[tx].patches > 1)
373376
{
374377
if (!i)
@@ -482,6 +485,7 @@ void R_InitPatches(void)
482485

483486
texturecomposites = calloc(numtextures, sizeof(rpatch_t));
484487

488+
BIGDOOR1 = R_CheckTextureNumForName("BIGDOOR1");
485489
BIGDOOR7 = R_CheckTextureNumForName("BIGDOOR7");
486490
FIREBLU1 = R_CheckTextureNumForName("FIREBLU1");
487491
SKY1 = R_CheckTextureNumForName("SKY1");

0 commit comments

Comments
 (0)