diff options
author | Darkvater <darkvater@openttd.org> | 2005-05-07 10:26:12 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-05-07 10:26:12 +0000 |
commit | 3ad11e0ad45af46ffbc3cbe16156794d76f1cf4f (patch) | |
tree | 41092e6384d7ca2d43fd19eb44c85504508903a0 /command.h | |
parent | b90e9d49caf46acc51975fdf995858b20d13055f (diff) | |
download | openttd-3ad11e0ad45af46ffbc3cbe16156794d76f1cf4f.tar.xz |
(svn r2279) - Fix: Check the parameters of the first 10 Commands. While there also add proper comments for the functions and fix up CmdFailed()
Diffstat (limited to 'command.h')
-rw-r--r-- | command.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -191,4 +191,6 @@ int32 DoCommandByTile(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint p bool IsValidCommand(uint cmd); int32 GetAvailableMoneyForCommand(void); +/* Validate functions for rail building */ +static inline bool ValParamRailtype(uint32 rail) { return (rail > GetPlayer(_current_player)->max_railtype) ? false : true;} #endif /* COMMAND_H */ |