(svn r19307) -Add: Let railtypes specify their own smallmap colour. No legend support yet.

This commit is contained in:
2010-03-03 19:07:34 +00:00
parent c3d3e7d383
commit 1025d003b3
4 changed files with 30 additions and 0 deletions

View File

@@ -2583,6 +2583,10 @@ static ChangeInfoResult RailTypeChangeInfo(uint id, int numinfo, int prop, ByteR
rti->acceleration_type = Clamp(buf->ReadByte(), 0, 2);
break;
case 0x16: // Map colour
rti->map_colour = MapDOSColour(buf->ReadByte());
break;
default:
ret = CIR_UNKNOWN;
break;
@@ -2637,6 +2641,7 @@ static ChangeInfoResult RailTypeReserveInfo(uint id, int numinfo, int prop, Byte
case 0x11: // Curve speed advantage
case 0x12: // Station graphic
case 0x15: // Acceleration model
case 0x16: // Map colour
buf->ReadByte();
break;