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:
Andre Heider 2018-02-23 13:33:48 +01:00
parent bbcb2b00dc
commit 83b358ddbe

View file

@ -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");