summaryrefslogtreecommitdiff
path: root/waypoint.c
diff options
context:
space:
mode:
authorludde <ludde@openttd.org>2005-08-01 16:31:19 +0000
committerludde <ludde@openttd.org>2005-08-01 16:31:19 +0000
commit29564f9fcfc6e2dffb7afa196dbcabb04c99bee7 (patch)
treedc182cc3e9eea6a1776b7fdc84014ec094051275 /waypoint.c
parent91353c841f3adde7f601ab4185e3486a034dbd04 (diff)
downloadopenttd-29564f9fcfc6e2dffb7afa196dbcabb04c99bee7.tar.xz
(svn r2781) Fix some of the issues with variables in .h files.
Diffstat (limited to 'waypoint.c')
-rw-r--r--waypoint.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/waypoint.c b/waypoint.c
index 8fd330e43..5ffd9791c 100644
--- a/waypoint.c
+++ b/waypoint.c
@@ -16,7 +16,6 @@
#include "variables.h"
#include "table/sprites.h"
#include "table/strings.h"
-#include "table/track_land.h"
enum {
/* Max waypoints: 64000 (8 * 8000) */
@@ -359,6 +358,7 @@ Station *ComposeWaypointStation(TileIndex tile)
extern uint16 _custom_sprites_base;
+
/* Draw a waypoint */
void DrawWaypointSprite(int x, int y, int stat_id, uint railtype)
{
@@ -376,18 +376,7 @@ void DrawWaypointSprite(int x, int y, int stat_id, uint railtype)
/* draw default waypoint graphics of ID 0 */
if (stat_id == 0) {
- const DrawTrackSeqStruct *dtss = _track_depot_layout_table[4];
-
- img = dtss++->image;
- if (img & PALETTE_MODIFIER_COLOR) img = (img & SPRITE_MASK) + rti->total_offset;
- DrawSprite(img, x, y);
-
- for (; dtss->image != 0; dtss++) {
- Point pt = RemapCoords(dtss->subcoord_x, dtss->subcoord_y, 0);
- img = dtss->image;
- if (img & PALETTE_MODIFIER_COLOR) img |= ormod;
- DrawSprite(img, x + pt.x, y + pt.y);
- }
+ DrawDefaultWaypointSprite(x, y, railtype);
return;
}
@@ -407,7 +396,6 @@ void DrawWaypointSprite(int x, int y, int stat_id, uint railtype)
foreach_draw_tile_seq(seq, cust->seq) {
Point pt = RemapCoords(seq->delta_x, seq->delta_y, seq->delta_z);
uint32 image = seq->image + relocation;
-
DrawSprite((image & SPRITE_MASK) | ormod, x + pt.x, y + pt.y);
}
}