Allow NewGRFs to set the selection sprite for a bridge

Allow NewGRFs to define the sprite to use for a bridge in the bridge
selection window through Action0 property 14.

(cherry picked from commit 8434809a5b57477908e8d5f663e950546c7c8408)
This commit is contained in:
cirdan
2016-06-04 18:12:24 +02:00
committed by Jonathan G Rennison
parent 848a92e0d9
commit 1aa13c9ea3

View File

@@ -2243,6 +2243,11 @@ static ChangeInfoResult BridgeChangeInfo(uint brid, int numinfo, int prop, ByteR
bridge->price = buf->ReadWord();
break;
case 0x14: // purchase sprite
bridge->sprite = buf->ReadWord();
bridge->pal = buf->ReadWord();
break;
default:
ret = CIR_UNKNOWN;
break;