Changeset - r5220:f1a0b5cb28f4
[Not reviewed]
master
0 3 0
peter1138 - 17 years ago 2006-12-03 18:28:42
peter1138@openttd.org
(svn r7335) -Codechange: redraw station tiles when cargo is moved, for newstations
3 files changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
economy.c
Show inline comments
 
@@ -1500,6 +1500,7 @@ int LoadUnloadVehicle(Vehicle *v, bool j
 

	
 
	if (result != 0) {
 
		InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
 
		MarkStationTilesDirty(st);
 

	
 
		if (result & 2) InvalidateWindow(WC_STATION_VIEW, last_visited);
 

	
station.h
Show inline comments
 
@@ -210,6 +210,7 @@ void GetProductionAroundTiles(AcceptedCa
 
void GetAcceptanceAroundTiles(AcceptedCargo accepts, TileIndex tile, int w, int h, int rad);
 
uint GetStationPlatforms(const Station *st, TileIndex tile);
 
uint GetPlatformLength(TileIndex tile, DiagDirection dir);
 
void MarkStationTilesDirty(const Station *st);
 

	
 

	
 
const DrawTileSprites *GetStationTileLayout(byte gfx);
station_cmd.c
Show inline comments
 
@@ -79,7 +79,7 @@ static bool TileBelongsToRailStation(con
 
	return IsTileType(tile, MP_STATION) && GetStationIndex(tile) == st->index && IsRailwayStation(tile);
 
}
 

	
 
static void MarkStationTilesDirty(const Station *st)
 
void MarkStationTilesDirty(const Station *st)
 
{
 
	TileIndex tile = st->train_tile;
 
	int w, h;
 
@@ -2591,6 +2591,7 @@ static void UpdateStationWaiting(Station
 
	st->goods[type].enroute_time = 0;
 
	st->goods[type].enroute_from = st->index;
 
	InvalidateWindow(WC_STATION_VIEW, st->index);
 
	MarkStationTilesDirty(st);
 
}
 

	
 
/** Rename a station
0 comments (0 inline, 0 general)