mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +00:00
(svn r14193) -Fix (r14191): don't put an unsigned 0x80 in a signed int8 as that's not what you want.
This commit is contained in:
parent
d40145008e
commit
0b88f0cf54
@ -85,9 +85,9 @@ void SkipSpriteData(byte type, uint16 num)
|
||||
while (num > 0) {
|
||||
int8 i = FioReadByte();
|
||||
if (i >= 0) {
|
||||
i = (i == 0) ? 0x80 : i;
|
||||
num -= i;
|
||||
FioSkipBytes(i);
|
||||
int size = (i == 0) ? 0x80 : i;
|
||||
num -= size;
|
||||
FioSkipBytes(size);
|
||||
} else {
|
||||
i = -(i >> 3);
|
||||
num -= i;
|
||||
|
Loading…
Reference in New Issue
Block a user