Initial version of blueprints (copy/paste)

This commit is contained in:
dP
2020-12-22 02:35:34 +03:00
parent d084a4b8a8
commit feebf5499a
15 changed files with 1009 additions and 39 deletions

View File

@@ -32,6 +32,7 @@
#include "table/strings.h"
#include "citymania/cm_hotkeys.hpp"
#include "citymania/cm_blueprint.hpp"
#include "safeguards.h"
@@ -610,6 +611,8 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallbac
if (!estimate_only && !only_sending && callback != nullptr) {
callback(res, tile, p1, p2, cmd);
}
if (!estimate_only && !only_sending)
citymania::CommandExecuted(res.Succeeded(), tile, p1, p2, cmd);
return res.Succeeded();
}