Changeset - r16641:669adb7a8d82
[Not reviewed]
master
0 1 0
rubidium - 14 years ago 2010-12-04 13:04:19
rubidium@openttd.org
(svn r21382) -Fix (r21153) [FS#4290]: the road vehicle's frame wasn't properly set upon savegame conversion *if* the vehicle would be hidden, but isn't going to be hidden anymore after the conversion
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/saveload/afterload.cpp
Show inline comments
 
@@ -2367,13 +2367,13 @@ bool AfterLoadGame()
 
				}
 
			} else {
 
				v->vehstatus &= ~VS_HIDDEN;
 

	
 
				switch (v->type) {
 
					case VEH_TRAIN: Train::From(v)->track       = DiagDirToDiagTrackBits(vdir); break;
 
					case VEH_ROAD:  RoadVehicle::From(v)->state = DiagDirToDiagTrackdir(vdir);  break;
 
					case VEH_ROAD:  RoadVehicle::From(v)->state = DiagDirToDiagTrackdir(vdir); RoadVehicle::From(v)->frame = frame; break;
 
					default: NOT_REACHED();
 
				}
 
			}
 
		}
 
	}
 

	
0 comments (0 inline, 0 general)