|
OpenTTD Source
13.0-beta1
|
#include "command_type.h"Go to the source code of this file.
Functions | |
| CommandCost | CmdPlantTree (DoCommandFlag flags, TileIndex tile, TileIndex start_tile, byte tree_to_plant) |
| Plant a tree. More... | |
Command definitions related to tree tiles.
Definition in file tree_cmd.h.
| CommandCost CmdPlantTree | ( | DoCommandFlag | flags, |
| TileIndex | tile, | ||
| TileIndex | start_tile, | ||
| byte | tree_to_plant | ||
| ) |
Plant a tree.
| flags | type of operation |
| tile | end tile of area-drag |
| start_tile | start tile of area-drag of tree plantation |
| tree_to_plant | tree type, TREE_INVALID means random. |
Definition at line 389 of file tree_cmd.cpp.
References CMD_ERROR, EXPENSES_OTHER, INVALID_STRING_ID, IsInsideBS(), MapSize(), and TREE_INVALID.