Fix: CmdSetAutoReplace didn't validate group type and engine type match (#9950)
[openttd-github.git] / src / roadveh_cmd.h
blob3d71abce735cd618c80d1ce07712c78b6d690190
1 /*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
6 */
8 /** @file roadveh_cmd.h Command definitions related to road vehicles. */
10 #ifndef ROADVEH_CMD_H
11 #define ROADVEH_CMD_H
13 #include "command_type.h"
14 #include "engine_type.h"
15 #include "vehicle_type.h"
17 CommandCost CmdBuildRoadVehicle(DoCommandFlag flags, TileIndex tile, const Engine *e, Vehicle **v);
19 CommandCost CmdTurnRoadVeh(DoCommandFlag flags, VehicleID veh_id);
21 DEF_CMD_TRAIT(CMD_TURN_ROADVEH, CmdTurnRoadVeh, 0, CMDT_VEHICLE_MANAGEMENT)
23 #endif /* ROADVEH_CMD_H */