From 1aa13c9ea33ffb78bbfb25ff3e25ddc153be866b Mon Sep 17 00:00:00 2001 From: cirdan Date: Sat, 4 Jun 2016 18:12:24 +0200 Subject: [PATCH] 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) --- src/newgrf.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 9703d17af3..3c92aa97ba 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -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;