summaryrefslogtreecommitdiff
path: root/src/script/script_instance.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/script_instance.hpp')
-rw-r--r--src/script/script_instance.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/script/script_instance.hpp b/src/script/script_instance.hpp
index 653ec3884..dc5b28dfb 100644
--- a/src/script/script_instance.hpp
+++ b/src/script/script_instance.hpp
@@ -182,8 +182,10 @@ public:
* @param tile The tile on which the command was executed.
* @param p1 p1 as given to DoCommandPInternal.
* @param p2 p2 as given to DoCommandPInternal.
+ * @param cmd cmd as given to DoCommandPInternal.
+ * @return true if we handled result.
*/
- void DoCommandCallback(const CommandCost &result, TileIndex tile, uint32 p1, uint32 p2);
+ bool DoCommandCallback(const CommandCost &result, TileIndex tile, uint32 p1, uint32 p2, uint32 cmd);
/**
* Insert an event for this script.