GRF: Add generic mechanism to observe which features have been tested

This commit is contained in:
Jonathan G Rennison
2023-02-12 21:50:52 +00:00
parent 53835cef8e
commit a85b3d7de7
3 changed files with 15 additions and 3 deletions

View File

@@ -9231,6 +9231,9 @@ struct GRFFeatureTest {
} else {
grfmsg(2, "Action 14 feature test: feature test: doing nothing: %u", has_feature ? 1 : 0);
}
if (this->feature != nullptr && this->feature->observation_flag != GFTOF_INVALID) {
SetBit(_cur.grffile->observed_feature_tests, this->feature->observation_flag);
}
}
};