Codechange: Don't use globals for story/goal/sign/group command proc return values.
This commit is contained in:
@@ -13,10 +13,12 @@
|
||||
#include "command_type.h"
|
||||
#include "signs_type.h"
|
||||
|
||||
CommandCost CmdPlaceSign(DoCommandFlag flags, TileIndex tile, const std::string &text);
|
||||
std::tuple<CommandCost, SignID> CmdPlaceSign(DoCommandFlag flags, TileIndex tile, const std::string &text);
|
||||
CommandCost CmdRenameSign(DoCommandFlag flags, SignID sign_id, const std::string &text);
|
||||
|
||||
DEF_CMD_TRAIT(CMD_PLACE_SIGN, CmdPlaceSign, CMD_DEITY, CMDT_OTHER_MANAGEMENT)
|
||||
DEF_CMD_TRAIT(CMD_RENAME_SIGN, CmdRenameSign, CMD_DEITY, CMDT_OTHER_MANAGEMENT)
|
||||
|
||||
void CcPlaceSign(Commands cmd, const CommandCost &result, SignID new_sign);
|
||||
|
||||
#endif /* SIGNS_CMD_H */
|
||||
|
Reference in New Issue
Block a user