station_cmd.c
changeset 3362 5fc13da0a8fd
parent 3355 a653b8e47f27
child 3374 9721c51bea25
--- a/station_cmd.c	Wed Mar 29 20:06:31 2006 +0000
+++ b/station_cmd.c	Wed Mar 29 20:35:39 2006 +0000
@@ -1959,7 +1959,7 @@
 	// but this is something else. If AI builds station with 114 it looks all weird
 	DrawGroundSprite(image);
 
-	if (GB(_m[ti->tile].m3, 0, 4) == RAILTYPE_ELECTRIC) DrawCatenary(ti);
+	if (GetRailType(ti->tile) == RAILTYPE_ELECTRIC) DrawCatenary(ti);
 
 	foreach_draw_tile_seq(dtss, t->seq) {
 		image = dtss->image + relocation;