GRF: Allow railtype custom signal sprites for programmable pre-signals

This commit is contained in:
Jonathan G Rennison
2020-09-26 11:21:49 +01:00
parent 3cb1327012
commit d32672a325
8 changed files with 61 additions and 20 deletions

View File

@@ -629,6 +629,9 @@ class NIHRailType : public NIHelper {
HasBit(info->flags, RTF_ALLOW_90DEG) ? 'a' : '-',
HasBit(info->flags, RTF_DISALLOW_90DEG) ? 'd' : '-');
print(buffer);
seprintf(buffer, lastof(buffer), " Ctrl flags: %c",
HasBit(info->ctrl_flags, RTCF_PROGSIG) ? 'p' : '-');
print(buffer);
};
print("Debug Info:");

View File

@@ -77,6 +77,9 @@ static const RailtypeInfo _original_railtypes[] = {
/* flags */
RTFB_NONE,
/* control flags */
0,
/* cost multiplier */
8,
@@ -178,6 +181,9 @@ static const RailtypeInfo _original_railtypes[] = {
/* flags */
RTFB_CATENARY,
/* control flags */
0,
/* cost multiplier */
12,
@@ -275,6 +281,9 @@ static const RailtypeInfo _original_railtypes[] = {
/* flags */
RTFB_NONE,
/* control flags */
0,
/* cost multiplier */
16,
@@ -372,6 +381,9 @@ static const RailtypeInfo _original_railtypes[] = {
/* flags */
RTFB_NONE,
/* control flags */
0,
/* cost multiplier */
24,