1
0
Fork 0

(svn r10635) -Codechange: Correct some typos and code beautifying (a little bit)

release/0.6
belugas 2007-07-20 14:49:41 +00:00
parent d93fcea1f8
commit c0b044ac45
1 changed files with 5 additions and 7 deletions

View File

@ -64,7 +64,6 @@ void ResetIndustries()
_industry_specs[i].enabled = HASBIT(_origin_industry_specs[i].climate_availability, _opt.landscape); _industry_specs[i].enabled = HASBIT(_origin_industry_specs[i].climate_availability, _opt.landscape);
} }
memset(&_industry_tile_specs, 0, sizeof(_industry_tile_specs)); memset(&_industry_tile_specs, 0, sizeof(_industry_tile_specs));
memcpy(&_industry_tile_specs, &_origin_industry_tile_specs, sizeof(_origin_industry_tile_specs)); memcpy(&_industry_tile_specs, &_origin_industry_tile_specs, sizeof(_origin_industry_tile_specs));
} }
@ -123,7 +122,7 @@ const IndustrySpec *GetIndustrySpec(IndustryType thistype)
* Accessor for array _industry_tile_specs. * Accessor for array _industry_tile_specs.
* This will ensure at once : proper access and * This will ensure at once : proper access and
* not allowing modifications of it. * not allowing modifications of it.
* @param gfx of industrytile (which is the index in _industry_specs) * @param gfx of industrytile (which is the index in _industry_tile_specs)
* @pre gfx < INVALID_INDUSTRYTILE * @pre gfx < INVALID_INDUSTRYTILE
* @return a pointer to the corresponding industrytile spec * @return a pointer to the corresponding industrytile spec
**/ **/
@ -684,7 +683,6 @@ static void MakeIndustryTileBigger(TileIndex tile)
} }
} }
static void TileLoopIndustry_BubbleGenerator(TileIndex tile) static void TileLoopIndustry_BubbleGenerator(TileIndex tile)
{ {
int dir; int dir;
@ -819,7 +817,6 @@ static void TileLoop_Industry(TileIndex tile)
} }
} }
static void ClickTile_Industry(TileIndex tile) static void ClickTile_Industry(TileIndex tile)
{ {
ShowIndustryViewWindow(GetIndustryIndex(tile)); ShowIndustryViewWindow(GetIndustryIndex(tile));
@ -1061,7 +1058,6 @@ void OnTick_Industry()
} }
} }
static bool CheckNewIndustry_NULL(TileIndex tile) static bool CheckNewIndustry_NULL(TileIndex tile)
{ {
return true; return true;
@ -1714,7 +1710,9 @@ void GenerateIndustries()
} }
} }
/* Change industry production or do closure */ /** Change industry production or do closure
* @param i Industry for which changes are performed
*/
static void ExtChangeIndustryProduction(Industry *i) static void ExtChangeIndustryProduction(Industry *i)
{ {
bool closeit = true; bool closeit = true;
@ -2050,7 +2048,7 @@ static void Save_INDY()
{ {
Industry *ind; Industry *ind;
/* Write the vehicles */ /* Write the industries */
FOR_ALL_INDUSTRIES(ind) { FOR_ALL_INDUSTRIES(ind) {
SlSetArrayIndex(ind->index); SlSetArrayIndex(ind->index);
SlObject(ind, _industry_desc); SlObject(ind, _industry_desc);