TRN rewrite + bugfix (#4056)
* working new TRN system * apply TRNs to all unique missiles
This commit is contained in:
parent
1f7b0607a6
commit
9ba64ad08b
14 changed files with 74 additions and 36 deletions
|
|
@ -783,13 +783,13 @@ void Cl2DrawOutline(const Surface &out, uint8_t col, int sx, int sy, const CelSp
|
|||
RenderCl2Outline(out, { sx, sy }, pRLEBytes, nDataSize, cel.Width(frame), col);
|
||||
}
|
||||
|
||||
void Cl2DrawLightTbl(const Surface &out, int sx, int sy, const CelSprite &cel, int frame, char light)
|
||||
void Cl2DrawTRN(const Surface &out, int sx, int sy, const CelSprite &cel, int frame, uint8_t *trn)
|
||||
{
|
||||
assert(frame > 0);
|
||||
|
||||
int nDataSize;
|
||||
const byte *pRLEBytes = CelGetFrameClipped(cel.Data(), frame, &nDataSize);
|
||||
Cl2BlitLightSafe(out, sx, sy, pRLEBytes, nDataSize, cel.Width(frame), GetLightTable(light));
|
||||
Cl2BlitLightSafe(out, sx, sy, pRLEBytes, nDataSize, cel.Width(frame), trn);
|
||||
}
|
||||
|
||||
void Cl2DrawLight(const Surface &out, int sx, int sy, const CelSprite &cel, int frame)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue