From eb50427670871854931383f8bf331ddaea3ebc45 Mon Sep 17 00:00:00 2001 From: celestar Date: Sun, 14 Nov 2004 09:07:15 +0000 Subject: (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) --- rail_gui.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'rail_gui.c') 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)); } -- cgit v1.2.3-54-g00ecf