Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed: Material definitions referencing sprite patches not working. S…
…ymptom - Bug #2673525 "wad midspace texture name does not work" (see http://sourceforge.net/tracker2/?func=detail&aid=2673525&group_id=74815&atid=542099). In fixing the above I have re-implemented the way in which sprite patch records are generated. This process is no longer dependent upon Sprite (name) definitions, instead we now construct the spritedef_t databases directly from the lumps. However, as the games still depend upon an unobvious correlation between the prite name indices and the relevant spritedef_t indices, there is currently a kludge in R_InitSprites which re-indexes them as expected, using the existing Sprite (name) definitions indices. A quick trawl over our codebase confirms to me that there are very few places remaining where the sprite name indice:spritedef_t indice assumption remains. The main instance being the sprite replacement in dpDehRead. As Doomsday itself no longer depends upon the Sprite (name) definitions; potentially they can be removed from the public shared data too (once the new DED reader/management is in place, solving the dpDehRead issue should be trivial).
- Loading branch information
danij
committed
Mar 9, 2009
1 parent
73b170c
commit fa52da1
Showing
6 changed files
with
321 additions
and
166 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
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
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
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
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
Oops, something went wrong.