summaryrefslogtreecommitdiff
path: root/command.h
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-05-09 13:26:15 +0000
committerDarkvater <darkvater@openttd.org>2005-05-09 13:26:15 +0000
commit2b96754673a964ba73a7ad5e508a8dfb31a0c701 (patch)
treeccbac52281216762b9143a0756b6a957443b581d /command.h
parent5f6de3e47c1418388efeabef2a312f689a288175 (diff)
downloadopenttd-2b96754673a964ba73a7ad5e508a8dfb31a0c701.tar.xz
(svn r2285) - Codechange: Fix up some of the missing things from server-checking; namely bridge-type, bridge-length, dragged end-tile (bridge/station), station_spread
- Fix: [ 1197256 ] max station spread patch < 7 does not work. Station spread was not taking into account when not using drag&drop. Fix this up, and add a callback to the settings window to immediately reflect the changes.
Diffstat (limited to 'command.h')
-rw-r--r--command.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/command.h b/command.h
index c6c514938..6a9764c06 100644
--- a/command.h
+++ b/command.h
@@ -192,5 +192,5 @@ 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;}
+static inline bool ValParamRailtype(uint32 rail) { return rail <= GetPlayer(_current_player)->max_railtype;}
#endif /* COMMAND_H */