(svn r26541) [1.4] -Backport from trunk:
- Fix: Prevent comparing to NULL when strndup could not allocate memory (r26476) - Fix: Potentially undefined shifts in NewGRF code (r26475) - Fix: Make sure there is no uninitialised sprite data (r26473) - Fix: Draw text shadow for ellipses (r26467) - Fix: Add special handling for PALETTE_CRASH to work for non-8bpp-mapped sprites (r26463)
This commit is contained in:
@@ -6736,7 +6736,7 @@ static void ParamSet(ByteReader *buf)
|
||||
if ((int32)src2 < 0) {
|
||||
res = src1 >> -(int32)src2;
|
||||
} else {
|
||||
res = src1 << src2;
|
||||
res = src1 << (src2 & 0x1F); // Same behaviour as in EvalAdjustT, mask 'value' to 5 bits, which should behave the same on all architectures.
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -6744,7 +6744,7 @@ static void ParamSet(ByteReader *buf)
|
||||
if ((int32)src2 < 0) {
|
||||
res = (int32)src1 >> -(int32)src2;
|
||||
} else {
|
||||
res = (int32)src1 << src2;
|
||||
res = (int32)src1 << (src2 & 0x1F); // Same behaviour as in EvalAdjustT, mask 'value' to 5 bits, which should behave the same on all architectures.
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user