mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-04 05:15:21 +00:00
(svn r19306) -Change: Railtype cost factor from byte to word value
This commit is contained in:
parent
4963296f03
commit
c3d3e7d383
@ -2572,7 +2572,7 @@ static ChangeInfoResult RailTypeChangeInfo(uint id, int numinfo, int prop, ByteR
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 0x13: // Construction cost factor
|
case 0x13: // Construction cost factor
|
||||||
rti->cost_multiplier = buf->ReadByte();
|
rti->cost_multiplier = buf->ReadWord();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 0x14: // Speed limit
|
case 0x14: // Speed limit
|
||||||
@ -2623,6 +2623,7 @@ static ChangeInfoResult RailTypeReserveInfo(uint id, int numinfo, int prop, Byte
|
|||||||
case 0x0B: // Build window caption
|
case 0x0B: // Build window caption
|
||||||
case 0x0C: // Autoreplace text
|
case 0x0C: // Autoreplace text
|
||||||
case 0x0D: // New loco
|
case 0x0D: // New loco
|
||||||
|
case 0x13: // Construction cost
|
||||||
case 0x14: // Speed limit
|
case 0x14: // Speed limit
|
||||||
buf->ReadWord();
|
buf->ReadWord();
|
||||||
break;
|
break;
|
||||||
@ -2635,7 +2636,6 @@ static ChangeInfoResult RailTypeReserveInfo(uint id, int numinfo, int prop, Byte
|
|||||||
case 0x10: // Rail Type flags
|
case 0x10: // Rail Type flags
|
||||||
case 0x11: // Curve speed advantage
|
case 0x11: // Curve speed advantage
|
||||||
case 0x12: // Station graphic
|
case 0x12: // Station graphic
|
||||||
case 0x13: // Construction cost
|
|
||||||
case 0x15: // Acceleration model
|
case 0x15: // Acceleration model
|
||||||
buf->ReadByte();
|
buf->ReadByte();
|
||||||
break;
|
break;
|
||||||
|
@ -186,7 +186,7 @@ struct RailtypeInfo {
|
|||||||
/**
|
/**
|
||||||
* Cost multiplier for building this rail type
|
* Cost multiplier for building this rail type
|
||||||
*/
|
*/
|
||||||
uint8 cost_multiplier;
|
uint16 cost_multiplier;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Acceleration type of this rail type
|
* Acceleration type of this rail type
|
||||||
|
Loading…
Reference in New Issue
Block a user