Changeset - r15802:c264c6cc5624
[Not reviewed]
master
0 1 0
rubidium - 14 years ago 2010-08-14 09:04:37
rubidium@openttd.org
(svn r20487) -Fix: typo in comments
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/newgrf_commons.cpp
Show inline comments
 
@@ -239,13 +239,13 @@ uint16 IndustryOverrideManager::AddEntit
 
 * The slot assigment is internal of this method, since it requires
 
 * checking what is available
 
 * @param inds Industryspec that comes from the grf decoding process
 
 */
 
void IndustryOverrideManager::SetEntitySpec(IndustrySpec *inds)
 
{
 
	/* First step : We need to find if this industry is already specified in the savegame data */
 
	/* First step : We need to find if this industry is already specified in the savegame data. */
 
	IndustryType ind_id = this->GetID(inds->grf_prop.local_id, inds->grf_prop.grffile->grfid);
 

	
 
	if (ind_id == invalid_ID) {
 
		/* Not found.
 
		 * Or it has already been overriden, so you've lost your place old boy.
 
		 * Or it is a simple substitute.
 
@@ -256,15 +256,15 @@ void IndustryOverrideManager::SetEntityS
 

	
 
	if (ind_id == invalid_ID) {
 
		grfmsg(1, "Industry.SetEntitySpec: Too many industries allocated. Ignoring.");
 
		return;
 
	}
 

	
 
	/* Now that we know we can use the given id, copy the spech to its final destination*/
 
	/* Now that we know we can use the given id, copy the spec to its final destination... */
 
	memcpy(&_industry_specs[ind_id], inds, sizeof(*inds));
 
	/* and mark it as usable*/
 
	/* ... and mark it as usable*/
 
	_industry_specs[ind_id].enabled = true;
 
}
 

	
 
void IndustryTileOverrideManager::SetEntitySpec(const IndustryTileSpec *its)
 
{
 
	IndustryGfx indt_id = this->AddEntityID(its->grf_prop.local_id, its->grf_prop.grffile->grfid, its->grf_prop.subst_id);
0 comments (0 inline, 0 general)