Changeset - r19995:9ddca6de8a81
[Not reviewed]
master
0 1 0
frosch - 11 years ago 2013-01-31 18:34:11
frosch@openttd.org
(svn r24951) -Fix: [NewGRF] Var 10 of CB 24 missed the T part.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -1266,25 +1266,25 @@ CommandCost CmdBuildRailStation(TileInde
 
				/* Free the spec if we overbuild something */
 
				DeallocateSpecFromStation(st, old_specindex);
 

	
 
				SetCustomStationSpecIndex(tile, specindex);
 
				SetStationTileRandomBits(tile, GB(Random(), 0, 4));
 
				SetAnimationFrame(tile, 0);
 

	
 
				if (!IsStationTileBlocked(tile)) c->infrastructure.rail[rt]++;
 
				c->infrastructure.station++;
 

	
 
				if (statspec != NULL) {
 
					/* Use a fixed axis for GetPlatformInfo as our platforms / numtracks are always the right way around */
 
					uint32 platinfo = GetPlatformInfo(AXIS_X, 0, plat_len, numtracks_orig, plat_len - w, numtracks_orig - numtracks, false);
 
					uint32 platinfo = GetPlatformInfo(AXIS_X, GetStationGfx(tile), plat_len, numtracks_orig, plat_len - w, numtracks_orig - numtracks, false);
 

	
 
					/* As the station is not yet completely finished, the station does not yet exist. */
 
					uint16 callback = GetStationCallback(CBID_STATION_TILE_LAYOUT, platinfo, 0, statspec, NULL, tile);
 
					if (callback != CALLBACK_FAILED) {
 
						if (callback < 8) {
 
							SetStationGfx(tile, (callback & ~1) + axis);
 
						} else {
 
							ErrorUnknownCallbackResult(statspec->grf_prop.grffile->grfid, CBID_STATION_TILE_LAYOUT, callback);
 
						}
 
					}
 

	
 
					/* Trigger station animation -- after building? */
0 comments (0 inline, 0 general)