Changeset - r15930:e3a989f7a622
[Not reviewed]
master
0 2 0
rubidium - 14 years ago 2010-08-26 17:08:37
rubidium@openttd.org
(svn r20628) -Fix: typos in animation trigger enum/comments
2 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/newgrf_animation_type.h
Show inline comments
 
@@ -43,14 +43,14 @@ enum IndustryAnimationTrigger {
 
	IAT_INDUSTRY_RECEIVED_CARGO,    ///< Trigger when cargo is received .
 
	IAT_INDUSTRY_DISTRIBUTES_CARGO, ///< Trigger when cargo is distributed.
 
};
 

	
 
/** Animation triggers for airport tiles */
 
enum AirpAnimationTrigger {
 
	AAT_BUILT,               ///< Triggered when the airport it build (for all tiles at the same time).
 
	AAT_BUILT,               ///< Triggered when the airport is built (for all tiles at the same time).
 
	AAT_TILELOOP,            ///< Triggered in the periodic tile loop.
 
	AAT_STATION_NEW_CARGO,   ///< Triggered when new cargo arrives at the station (for all tiles at the same time).
 
	AAT_STATION_CARGO_TAKEN, ///< Triggered when a cargo type is completely removed from the station (for all tiles at the same time).
 
	AAT_STATION_250_ticks,   ///< Triggered every 250 ticks (for all tiles at the same time).
 
	AAT_STATION_250_TICKS,   ///< Triggered every 250 ticks (for all tiles at the same time).
 
};
 

	
 
#endif /* NEWGRF_ANIMATION_TYPE_H */
src/station_cmd.cpp
Show inline comments
 
@@ -3151,13 +3151,13 @@ void OnTick_Station()
 
		 * Station index is included so that triggers are not all done
 
		 * at the same time. */
 
		if ((_tick_counter + st->index) % 250 == 0) {
 
			/* Stop processing this station if it was deleted */
 
			if (!StationHandleBigTick(st)) continue;
 
			TriggerStationAnimation(st, st->xy, SAT_250_TICKS);
 
			if (Station::IsExpected(st)) AirportAnimationTrigger(Station::From(st), AAT_STATION_250_ticks);
 
			if (Station::IsExpected(st)) AirportAnimationTrigger(Station::From(st), AAT_STATION_250_TICKS);
 
		}
 
	}
 
}
 

	
 
void StationMonthlyLoop()
 
{
0 comments (0 inline, 0 general)