Changeset - r14711:586dd86a76ca
[Not reviewed]
master
0 2 0
peter1138 - 14 years ago 2010-03-03 18:58:32
peter1138@openttd.org
(svn r19306) -Change: Railtype cost factor from byte to word value
2 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/newgrf.cpp
Show inline comments
 
@@ -2572,7 +2572,7 @@ static ChangeInfoResult RailTypeChangeIn
 
				break;
 

	
 
			case 0x13: // Construction cost factor
 
				rti->cost_multiplier = buf->ReadByte();
 
				rti->cost_multiplier = buf->ReadWord();
 
				break;
 

	
 
			case 0x14: // Speed limit
 
@@ -2623,6 +2623,7 @@ static ChangeInfoResult RailTypeReserveI
 
			case 0x0B: // Build window caption
 
			case 0x0C: // Autoreplace text
 
			case 0x0D: // New loco
 
			case 0x13: // Construction cost
 
			case 0x14: // Speed limit
 
				buf->ReadWord();
 
				break;
 
@@ -2635,7 +2636,6 @@ static ChangeInfoResult RailTypeReserveI
 
			case 0x10: // Rail Type flags
 
			case 0x11: // Curve speed advantage
 
			case 0x12: // Station graphic
 
			case 0x13: // Construction cost
 
			case 0x15: // Acceleration model
 
				buf->ReadByte();
 
				break;
src/rail.h
Show inline comments
 
@@ -186,7 +186,7 @@ struct RailtypeInfo {
 
	/**
 
	 * Cost multiplier for building this rail type
 
	 */
 
	uint8 cost_multiplier;
 
	uint16 cost_multiplier;
 

	
 
	/**
 
	 * Acceleration type of this rail type
0 comments (0 inline, 0 general)