mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-04 05:15:21 +00:00
(svn r19587) -Fix: false positive in cache validity checking when a train crashes; the max curve speed depends on the 'angle' between wagons and with wagons spinning around randomly without updating the max curve speed cache that leads to "seeing" a difference. As the caches aren't useful for crashed vehicles anymore, just ignore those vehicles
This commit is contained in:
parent
54067acb0f
commit
a617237021
@ -1106,7 +1106,7 @@ static void CheckCaches()
|
|||||||
|
|
||||||
Vehicle *v;
|
Vehicle *v;
|
||||||
FOR_ALL_VEHICLES(v) {
|
FOR_ALL_VEHICLES(v) {
|
||||||
if (v != v->First()) continue;
|
if (v != v->First() || v->vehstatus & VS_CRASHED) continue;
|
||||||
|
|
||||||
switch (v->type) {
|
switch (v->type) {
|
||||||
case VEH_ROAD: {
|
case VEH_ROAD: {
|
||||||
|
Loading…
Reference in New Issue
Block a user