Changeset - r417:3c433235ed8e
[Not reviewed]
master
0 2 0
dominik - 20 years ago 2004-11-14 22:30:46
dominik@openttd.org
(svn r614) [newgrf] Some minor code fixes
2 files changed with 6 insertions and 3 deletions:
0 comments (0 inline, 0 general)
rail_cmd.c
Show inline comments
 
@@ -1573,7 +1573,8 @@ static void DrawTile_Track(TileInfo *ti)
 
				uint32 relocation = GetCustomStationRelocation(stat, ComposeWaypointStation(ti->tile), 0);
 
				int railtype=(_map3_lo[ti->tile] & 0xF);
 

	
 
				image = cust->ground_sprite + railtype*((image<_custom_sprites_base)?TRACKTYPE_SPRITE_PITCH:1);
 
				image = cust->ground_sprite;
 
				image += railtype*((image<_custom_sprites_base)?TRACKTYPE_SPRITE_PITCH:1);
 
				if (image & 0x8000) image = (image & 0x7FFF);
 
				
 

	
 
@@ -1683,7 +1684,9 @@ void DrawWaypointSprite(int x, int y, in
 
	// add 1 to get the other direction
 
	cust = &stat->renderdata[2];
 

	
 
	img = cust->ground_sprite + railtype*((img<_custom_sprites_base)?TRACKTYPE_SPRITE_PITCH:1);
 
	img = cust->ground_sprite;
 
	img += railtype*((img<_custom_sprites_base)?TRACKTYPE_SPRITE_PITCH:1);
 

	
 
	if (img & 0x8000) img = (img & 0x7FFF);
 
	DrawSprite(img, x, y);
 

	
rail_gui.c
Show inline comments
 
@@ -1109,7 +1109,7 @@ static const Widget _build_waypoint_widg
 
{      WWT_PANEL,     7,   275,   340,    17,    76, 0x0, STR_WAYPOINT_GRAPHICS_TIP},
 

	
 
{  WWT_HSCROLLBAR,    7,     1,   343,    80,    91, 0x0, STR_0190_SCROLL_BAR_SCROLLS_LIST},
 
{      WWT_LAST},
 
{    WIDGETS_END},
 
};
 

	
 
static const WindowDesc _build_waypoint_desc = {
0 comments (0 inline, 0 general)