diff options
author | tron <tron@openttd.org> | 2006-04-10 07:15:58 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-04-10 07:15:58 +0000 |
commit | 81e6d68f95e7dea5c0d7dd105d67980d64af71e0 (patch) | |
tree | f8613338e934555520fd9b45b411e8a946c5be7a /command.h | |
parent | 6926bd55fd4f1d36745082b668b052c1b6691ad8 (diff) | |
download | openttd-81e6d68f95e7dea5c0d7dd105d67980d64af71e0.tar.xz |
(svn r4342) Change the first two parameters of commands - virtual pixel coordinates of the tile to operate on - to a TileIndex
Remove DoCommandByTile(), because now it does the same as DoCommand()
Diffstat (limited to 'command.h')
-rw-r--r-- | command.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -169,6 +169,8 @@ enum { CMD_OFFLINE = 0x2, /// the command cannot be executed in a multiplayer game; single-player only }; +typedef int32 CommandProc(TileIndex tile, uint32 flags, uint32 p1, uint32 p2); + typedef struct Command { CommandProc *proc; byte flags; @@ -189,8 +191,7 @@ static inline bool CmdFailed(int32 res) } /* command.c */ -int32 DoCommand(int x, int y, uint32 p1, uint32 p2, uint32 flags, uint procc); -int32 DoCommandByTile(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc); +int32 DoCommand(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc); extern const char* _cmd_text; // Text, which gets sent with a command |