DaniJ
Senior Member

Posts: 1740
Registered: 08-03 |
Gez said:
Aren't you confusing the flat markers and the patch markers?
No, I'm not confusing it at all. W_GetNumForName returns the index of the last lump found in the entire directory using a reverse name search.
This means that if the second group of flats in the PWAD is missing it's F_START marker all lumps between the F_START in the IWAD and the F_END in the PWAD will be interpreted as a flat.
Worse still is the situation where the last F_START and F_END is inversed (which very nearly happened in gothic2 bar for a single 'F' character).
So in short, the implementation in both DOOM and BOOM is pretty crap to say the least.
EDIT: Whoops, made a silly mistake in my calculation and removed it. I've been awake for nearly 36 hrs...
Last edited by DaniJ on 04-07-11 at 09:44
|