summaryrefslogtreecommitdiff
path: root/src/autoreplace_cmd.h
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-11-17 00:40:06 +0100
committerMichael Lutz <michi@icosahedron.de>2021-12-16 22:28:32 +0100
commite08b3abe7ff65c193781a74c170f45b2f1dcf0a5 (patch)
tree2b9c5d0a1012e63498c39cc557e826edff47696f /src/autoreplace_cmd.h
parent46bd2f1cedde365218a3f1a52116fe169587af89 (diff)
downloadopenttd-e08b3abe7ff65c193781a74c170f45b2f1dcf0a5.tar.xz
Codechange: Un-bitstuff group and autoreplace commands.
Diffstat (limited to 'src/autoreplace_cmd.h')
-rw-r--r--src/autoreplace_cmd.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/autoreplace_cmd.h b/src/autoreplace_cmd.h
index 14088d6dc..c42e740c9 100644
--- a/src/autoreplace_cmd.h
+++ b/src/autoreplace_cmd.h
@@ -11,9 +11,12 @@
#define AUTOREPLACE_CMD_H
#include "command_type.h"
+#include "vehicle_type.h"
+#include "engine_type.h"
+#include "group_type.h"
-CommandProc CmdAutoreplaceVehicle;
-CommandProc CmdSetAutoReplace;
+CommandCost CmdAutoreplaceVehicle(DoCommandFlag flags, VehicleID veh_id);
+CommandCost CmdSetAutoReplace(DoCommandFlag flags, GroupID id_g, EngineID old_engine_type, EngineID new_engine_type, bool when_old);
DEF_CMD_TRAIT(CMD_AUTOREPLACE_VEHICLE, CmdAutoreplaceVehicle, 0, CMDT_VEHICLE_MANAGEMENT)
DEF_CMD_TRAIT(CMD_SET_AUTOREPLACE, CmdSetAutoReplace, 0, CMDT_VEHICLE_MANAGEMENT)