summaryrefslogtreecommitdiff
path: root/rail_gui.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2004-11-14 09:07:15 +0000
committercelestar <celestar@openttd.org>2004-11-14 09:07:15 +0000
commiteb50427670871854931383f8bf331ddaea3ebc45 (patch)
tree42723b432782d90b954356a8da01ddcb5f40da1d /rail_gui.c
parenta9a852a4d61465ba33113239a9264ec39ef4c652 (diff)
downloadopenttd-eb50427670871854931383f8bf331ddaea3ebc45.tar.xz
(svn r581) -newgrf: Basic support for new stations - only waypoints supported now and only
the first custom one can be placed (no selector GUI, coming soon). This also moves some global variables to {struct GRFFile} and reorders which actions are processed in what stage, to get it all working together -- (pasky)
Diffstat (limited to 'rail_gui.c')
-rw-r--r--rail_gui.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/rail_gui.c b/rail_gui.c
index 880153d27..cf106f57f 100644
--- a/rail_gui.c
+++ b/rail_gui.c
@@ -114,7 +114,12 @@ static void PlaceRail_Depot(uint tile)
static void PlaceRail_Checkpoint(uint tile)
{
if (!_remove_button_clicked) {
- DoCommandP(tile, 0, 0, CcPlaySound1E, CMD_BUILD_TRAIN_CHECKPOINT | CMD_MSG(STR_CANT_BUILD_TRAIN_CHECKPOINT));
+ /* TODO: We need a graphics selector. In the meantime we use the first
+ * custom station ID which works ok with newstats.grf (if you add it
+ * to openttd.cfg you want custom checkpoints) and if you don't have
+ * any custom station graphics it will fall back to the railstation
+ * sprites anyway. --pasky */
+ DoCommandP(tile, 0x100, 0, CcPlaySound1E, CMD_BUILD_TRAIN_CHECKPOINT | CMD_MSG(STR_CANT_BUILD_TRAIN_CHECKPOINT));
} else {
DoCommandP(tile, 0, 0, CcPlaySound1E, CMD_REMOVE_TRAIN_CHECKPOINT | CMD_MSG(STR_CANT_REMOVE_TRAIN_CHECKPOINT));
}