(svn r21911) -Codechange: move tcache.last_speed to gcache.last_speed and make SetLastSpeed a function of GroundVehicle

This commit is contained in:
rubidium
2011-01-26 17:31:07 +00:00
parent 02f3de6d1f
commit 0f411f9899
4 changed files with 26 additions and 19 deletions

View File

@@ -336,7 +336,7 @@ void AfterLoadVehicles(bool part_of_load)
case VEH_TRAIN: {
Train *t = Train::From(v);
if (t->IsFrontEngine() || t->IsFreeWagon()) {
t->tcache.last_speed = t->cur_speed; // update displayed train speed
t->gcache.last_speed = t->cur_speed; // update displayed train speed
t->ConsistChanged(false);
}
break;