Only run trace restrict programs if they contain relevant actions.
Only run in pathfinder case if deny or penalty are present. Only run in is safe waiting tile case is reserve through is present. Presence is determined at program validation time and cached in the program structure. Validator now checks for unknown non-conditional instructions.
This commit is contained in:
@@ -1680,7 +1680,8 @@ private:
|
||||
items.insert(items.begin() + array_offset, item);
|
||||
}
|
||||
|
||||
return TraceRestrictProgram::Validate(items).Succeeded();
|
||||
TraceRestrictProgramActionsUsedFlags actions_used_flags;
|
||||
return TraceRestrictProgram::Validate(items, actions_used_flags).Succeeded();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user