Changeset - r19947:6fcd98a86532
[Not reviewed]
master
0 1 0
peter1138 - 11 years ago 2013-01-10 18:58:22
peter1138@openttd.org
(svn r24903) -Fix: Cached station animation triggers were only set when removing parts of a station.
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/newgrf_station.cpp
Show inline comments
 
@@ -721,24 +721,26 @@ int AllocateSpecToStation(const StationS
 

	
 
			if (st->num_specs == 2) {
 
				/* Initial allocation */
 
				st->speclist[0].spec     = NULL;
 
				st->speclist[0].grfid    = 0;
 
				st->speclist[0].localidx = 0;
 
			}
 
		}
 

	
 
		st->speclist[i].spec     = statspec;
 
		st->speclist[i].grfid    = statspec->grf_prop.grffile->grfid;
 
		st->speclist[i].localidx = statspec->grf_prop.local_id;
 

	
 
		StationUpdateAnimTriggers(st);
 
	}
 

	
 
	return i;
 
}
 

	
 

	
 
/**
 
 * Deallocate a StationSpec from a Station. Called when removing a single station tile.
 
 * @param st Station to work with.
 
 * @param specindex Index of the custom station within the Station's spec list.
 
 * @return Indicates whether the StationSpec was deallocated.
 
 */
0 comments (0 inline, 0 general)