Fix blueprint building

This commit is contained in:
dP
2023-02-03 23:55:04 +04:00
parent 0ef6c2f472
commit 9afc85c2e2
4 changed files with 36 additions and 29 deletions

View File

@@ -19,7 +19,7 @@
#include "tile_map.h"
struct CommandPacket;
namespace citymania { extern void ExecuteCurrentCallback(const CommandCost &cost); }
namespace citymania { void ExecuteCurrentCallback(const CommandCost &cost); }
/**
* Define a default return value for a failed command.
@@ -341,9 +341,10 @@ protected:
std::apply(callback, std::tuple_cat(std::make_tuple(Tcmd), res, args));
}
}
citymania::ExecuteCurrentCallback(ExtractCommandCost(res));
}
if (!estimate_only && !only_sending) citymania::ExecuteCurrentCallback(ExtractCommandCost(res));
return ExtractCommandCost(res).Succeeded();
}