Fix blueprint building
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user