mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-01-31 13:40:38 +00:00
Fix color glitches on cinematics for selected archs
These two casts assumed char is signed, which is not a valid assumption. Be explicit. Fixes idlogo.roq on e.g. aarch64.
This commit is contained in:
parent
bbcb2b00dc
commit
83b358ddbe
1 changed files with 2 additions and 2 deletions
|
@ -1499,8 +1499,8 @@ redump:
|
|||
roq_id = framedata[0] + framedata[1]*256;
|
||||
RoQFrameSize = framedata[2] + framedata[3]*256 + framedata[4]*65536;
|
||||
roq_flags = framedata[6] + framedata[7]*256;
|
||||
roqF0 = (char)framedata[7];
|
||||
roqF1 = (char)framedata[6];
|
||||
roqF0 = (signed char)framedata[7];
|
||||
roqF1 = (signed char)framedata[6];
|
||||
|
||||
if (RoQFrameSize>65536||roq_id==0x1084) {
|
||||
common->DPrintf("roq_size>65536||roq_id==0x1084\n");
|
||||
|
|
Loading…
Reference in a new issue