Handle predictable conditional orders in timetable window

This commit is contained in:
Jonathan G Rennison
2022-01-15 15:57:09 +00:00
parent 91ed26415e
commit b23d394f0b
5 changed files with 93 additions and 7 deletions

View File

@@ -2700,7 +2700,7 @@ static bool CheckForValidOrders(const Vehicle *v)
/**
* Compare the variable and value based on the given comparator.
*/
static bool OrderConditionCompare(OrderConditionComparator occ, int variable, int value)
bool OrderConditionCompare(OrderConditionComparator occ, int variable, int value)
{
switch (occ) {
case OCC_EQUALS: return variable == value;