Add command result flag for whether SetResultData was called

Use for tracerestrict validation result fail offset
This commit is contained in:
Jonathan G Rennison
2023-05-30 23:29:53 +01:00
parent 5dcbd9271b
commit 13183d3f13
4 changed files with 10 additions and 2 deletions

View File

@@ -1390,6 +1390,8 @@ void CommandCost::SetTile(TileIndex tile)
void CommandCost::SetResultData(uint32 result)
{
this->flags |= CCIF_VALID_RESULT;
if (result == this->GetResultData()) return;
if (this->AddInlineData(CCIF_INLINE_RESULT)) {