mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
Codechange: Swap comments for CommandHelper::Post overloads (#10454)
This commit is contained in:
parent
f951ce6931
commit
b5bc001d42
@ -450,14 +450,14 @@ struct CommandHelper<Tcmd, Tret(*)(DoCommandFlag, Targs...), false> : CommandHel
|
||||
using CommandHelper<Tcmd, Tret(*)(DoCommandFlag, Targs...), true>::Post;
|
||||
|
||||
/**
|
||||
* Shortcut for Post when not using an error message.
|
||||
* Shortcut for Post when not using a callback.
|
||||
* @param err_message Message prefix to show on error
|
||||
* @param location Tile location for user feedback.
|
||||
* @param args Parameters for the command
|
||||
*/
|
||||
static inline bool Post(StringID err_message, TileIndex location, Targs... args) { return Post<CommandCallback>(err_message, nullptr, location, std::forward<Targs>(args)...); }
|
||||
/**
|
||||
* Shortcut for Post when not using a callback.
|
||||
* Shortcut for Post when not using an error message.
|
||||
* @param callback A callback function to call after the command is finished
|
||||
* @param location Tile location for user feedback.
|
||||
* @param args Parameters for the command
|
||||
|
Loading…
Reference in New Issue
Block a user