OpenTTD Source: src/order_backup.cpp File Reference

OpenTTD Source 15.0-RC2

Functions | Variables
order_backup.cpp File Reference

Handling of order backups. More...

`#include "stdafx.h"`
`#include "command_func.h"`
`#include "core/pool_func.hpp"`
`#include "network/network.h"`
`#include "network/network_func.h"`
`#include "order_backup.h"`
`#include "vehicle_base.h"`
`#include "window_func.h"`
`#include "station_map.h"`
`#include "order_cmd.h"`
`#include "group_cmd.h"`
`#include "vehicle_func.h"`
`#include "table/strings.h"`
`#include "safeguards.h"`

Go to the source code of this file.

## Functions
CommandCost | CmdClearOrderBackup (DoCommandFlags flags, TileIndex tile, ClientID user_id)
| Clear an OrderBackup.

## Variables
OrderBackupPool | _order_backup_pool ("BackupOrder")

## Detailed Description

Handling of order backups.

Definition in file order_backup.cpp.

## Function Documentation

## ◆ CmdClearOrderBackup()

CommandCost CmdClearOrderBackup | ( | DoCommandFlags | flags,
|  | TileIndex | tile,
|  | ClientID | user_id
| ) |  |

Clear an OrderBackup.

Parameters

  flags | For command.
  tile | Tile related to the to-be-cleared OrderBackup.
  user_id | User that had the OrderBackup.

Returns
  The cost of this operation or an error.

Definition at line 132 of file order_backup.cpp.

References Execute, INVALID_TILE, OrderBackup::ResetOfUser(), and BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Test().