Changeset - r2476:05f5914f5ed1
[Not reviewed]
master
0 1 0
peter1138 - 19 years ago 2005-09-30 20:51:20
peter1138@openttd.org
(svn r3002) -Fix, Newgrf: Max speed of 0xFFFF means no max speed.
-Fix, Newgrf: Don't mark an engine as a wagon after setting speed -- wagons can have speed limits.
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
newgrf.c
Show inline comments
 
@@ -226,9 +226,10 @@ static bool RailVehicleChangeInfo(uint e
 
		case 0x09: { /* Speed */
 
			FOR_EACH_OBJECT {
 
				uint16 speed = grf_load_word(&buf);
 
				if (speed == 0xFFFF)
 
					speed = 0;
 

	
 
				rvi[i].max_speed = speed;
 
				dewagonize(speed, engine + i);
 
			}
 
		} break;
 
		case 0x0B: { /* Power */
0 comments (0 inline, 0 general)