mirror of https://github.com/OpenTTD/OpenTTD
(svn r2063) Fix: the 0x40 deterministic spritegroup for vehicles was wrong, modified to match the wiki again. (The wiki was partially wrong, too! ;) (Patch by HackyKid.)
parent
44f3702919
commit
7fceb7ea86
4
engine.c
4
engine.c
|
@ -334,8 +334,8 @@ static RealSpriteGroup* ResolveVehicleSpriteGroup(SpriteGroup *spritegroup,
|
||||||
chain_after++;
|
chain_after++;
|
||||||
};
|
};
|
||||||
|
|
||||||
value = chain_before << 16 | chain_after << 8
|
value = chain_before | chain_after << 8
|
||||||
| (chain_before + chain_after + 1);
|
| (chain_before + chain_after) << 16;
|
||||||
} else {
|
} else {
|
||||||
value = 1; /* 1 vehicle in the chain */
|
value = 1; /* 1 vehicle in the chain */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue