src/newgrf_station.cpp
branchNewGRF_ports
changeset 6743 cabfaa4a0295
parent 6739 3f2ca4d0abda
child 6868 7eb395287b3d
equal deleted inserted replaced
6742:1337d6c9b97b 6743:cabfaa4a0295
   554 
   554 
   555 	res->u.station.st       = st;
   555 	res->u.station.st       = st;
   556 	res->u.station.statspec = statspec;
   556 	res->u.station.statspec = statspec;
   557 	res->u.station.tile     = tile;
   557 	res->u.station.tile     = tile;
   558 
   558 
   559 	res->callback        = 0;
   559 	res->callback        = CBID_NO_CALLBACK;
   560 	res->callback_param1 = 0;
   560 	res->callback_param1 = 0;
   561 	res->callback_param2 = 0;
   561 	res->callback_param2 = 0;
   562 	res->last_value      = 0;
   562 	res->last_value      = 0;
   563 	res->trigger         = 0;
   563 	res->trigger         = 0;
   564 	res->reseed          = 0;
   564 	res->reseed          = 0;
   626 	if (group == NULL || group->type != SGT_RESULT) return 0;
   626 	if (group == NULL || group->type != SGT_RESULT) return 0;
   627 	return group->g.result.sprite - 0x42D;
   627 	return group->g.result.sprite - 0x42D;
   628 }
   628 }
   629 
   629 
   630 
   630 
   631 uint16 GetStationCallback(uint16 callback, uint32 param1, uint32 param2, const StationSpec *statspec, const Station *st, TileIndex tile)
   631 uint16 GetStationCallback(CallbackID callback, uint32 param1, uint32 param2, const StationSpec *statspec, const Station *st, TileIndex tile)
   632 {
   632 {
   633 	const SpriteGroup *group;
   633 	const SpriteGroup *group;
   634 	ResolverObject object;
   634 	ResolverObject object;
   635 
   635 
   636 	NewStationResolver(&object, statspec, st, tile);
   636 	NewStationResolver(&object, statspec, st, tile);