forked from Doom-Utils/deutex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't read IWAD's TEXTURE lump unless specified
- Loading branch information
Showing
1 changed file
with
22 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80ba7ee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic here looks backwards to me. The point is that when an IWAD is being built, any TEXTURE* lumps from an existing IWAD ought to be ignored.
But I also question whether this is the right approach. As @chungy comments in Doom-Utils#7, ideally deutex shouldn't require an existing IWAD at all when building an IWAD. If that part can be fixed, perhaps the "importing textures from IWAD" part of the problem resolves itself naturally.
80ba7ee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In line 557 of
deutex.c
,-iwad
setsType
toIWAD
instead of the defaultPWAD
. So essentially, checking ifType == IWAD
is basically the same as checking if-iwad
is true. Or maybe I'm missing something?80ba7ee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IWAD textures should only be inspected when a PWAD is being built, not when an IWAD is being built.
80ba7ee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:P I mistakenly wrote IWAD instead of PWAD. For some reason I assumed I was using != instead of == (9f7c847) should make sense.