mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 03:56:43 +00:00
Codechange: Remove unnecessary 'return_cmd_error` macro. (#13160)
This macro is a leftover from when errors used to be packed into a single int32_t. `return CommandCost` is clearer, and doesn't need a macro.
This commit is contained in:
+1
-1
@@ -506,7 +506,7 @@ CommandCost CmdPlantTree(DoCommandFlag flags, TileIndex tile, TileIndex start_ti
|
||||
}
|
||||
|
||||
if (cost.GetCost() == 0) {
|
||||
return_cmd_error(msg);
|
||||
return CommandCost(msg);
|
||||
} else {
|
||||
return cost;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user