Implement instruction scroll-to for PBS entry signal conditional in GUI.

pull/16/head
Jonathan G Rennison 7 years ago
parent f5e4d8e73a
commit 0ebfcc23a5

@ -944,6 +944,11 @@ public:
break;
}
}
} else if (GetTraceRestrictTypeProperties(item).value_type == TRVT_TILE_INDEX) {
TileIndex tile = *(TraceRestrictProgram::InstructionAt(this->GetProgram()->items, sel - 1) + 1);
if (tile != INVALID_TILE) {
ScrollMainWindowToTile(tile);
}
}
return;
}

Loading…
Cancel
Save