GRF: Add railtype custom signal sprite restricted flag, and control flag

This commit is contained in:
Jonathan G Rennison
2020-09-26 11:53:44 +01:00
parent d32672a325
commit b6f583a799
8 changed files with 25 additions and 6 deletions

View File

@@ -629,8 +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' : '-');
seprintf(buffer, lastof(buffer), " Ctrl flags: %c%c",
HasBit(info->ctrl_flags, RTCF_PROGSIG) ? 'p' : '-',
HasBit(info->ctrl_flags, RTCF_RESTRICTEDSIG) ? 'r' : '-');
print(buffer);
};