mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-19 07:31:03 +00:00
- fixed: Weapons are part of the scene and always need to be rendered with the global base palette.
This commit is contained in:
parent
8da6b8796b
commit
b6d204a88b
1 changed files with 5 additions and 2 deletions
|
@ -3063,8 +3063,11 @@ void twod_rotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16_t pic
|
|||
dg.mTexture = pic ? pic : tileGetTexture(picnum);
|
||||
if (!dg.mTexture || !dg.mTexture->isValid()) return; // empty tile.
|
||||
|
||||
// todo: check for hires replacements
|
||||
if (basepal == 0 && dapalnum == 0 && pic) dg.mTranslationId = 0;
|
||||
// todo: check for hires replacements.
|
||||
|
||||
// The weapon drawer needs to use the global base palette.
|
||||
if (twod == &twodpsp) dg.mTranslationId = TRANSLATION(Translation_Remap + curbasepal, dapalnum);
|
||||
else if (basepal == 0 && dapalnum == 0 && pic) dg.mTranslationId = 0;
|
||||
else dg.mTranslationId = TRANSLATION(Translation_Remap + basepal, dapalnum);
|
||||
|
||||
dg.mVertCount = 4;
|
||||
|
|
Loading…
Reference in a new issue