mirror of https://github.com/OpenRCT2/OpenRCT2.git
Check for `SEGMENTS_ALL` when printing
This commit is contained in:
parent
1ebfba60d9
commit
4b4c00a1af
|
@ -122,14 +122,24 @@ namespace Printer {
|
|||
static std::string PrintSegmentSupportHeightCall(SegmentSupportCall call) {
|
||||
std::string out = "";
|
||||
|
||||
int segmentsPrinted = 0;
|
||||
for (int i = 0; i < 9; i++) {
|
||||
if (call.segments & segment_offsets[i]) {
|
||||
if (segmentsPrinted > 0) {
|
||||
out += " | ";
|
||||
if (call.segments == SEGMENTS_ALL)
|
||||
{
|
||||
out += "SEGMENTS_ALL";
|
||||
}
|
||||
else
|
||||
{
|
||||
int segmentsPrinted = 0;
|
||||
for (int i = 0; i < 9; i++)
|
||||
{
|
||||
if (call.segments & segment_offsets[i])
|
||||
{
|
||||
if (segmentsPrinted > 0)
|
||||
{
|
||||
out += " | ";
|
||||
}
|
||||
out += String::Format("SEGMENT_%02X", 0xB4 + 4 * i);
|
||||
segmentsPrinted++;
|
||||
}
|
||||
out += String::Format("SEGMENT_%02X", 0xB4 + 4 * i);
|
||||
segmentsPrinted++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue