Age | Commit message (Collapse) | Author |
|
climate (this time i tested it)
|
|
|
|
industry_gui.c. Move it there.
-Codechange: _industry_type_cost is not defined, remove its declaration
|
|
Removed a loop that used the array _build_industry_types for that purpose.
|
|
-Codechange: member color_map is more related to random color, rename it as such
|
|
Add member life_type to IndustrySpec and remove the now useless _industry_close_mode array
|
|
splitting those functions.
At least in the case of checking for oil industry restrictions this makes the check conditions more clear.
|
|
Removing the _industry_type_costs in favor of IndustrySpec.cost_multiplier;
In order to let industry_gui use the GetIndustrySpec accessor,
some structs had to be moved in industry.h
|
|
Renaming GetIndustrySpecification to GetIndustrySpec. Looks better.
Removing the _industry_prod_up/down/close_strings
in favor of IndustrySpec.closure/production_up/down_text;
A few reformatting along the way.
Work of tfc_team
|
|
Removing the _industry_min_cargo[] in favor of IndustrySpec.minimal_cargo,
IndustrySpec.a,b,c are now conflicting[], add an enum for IndustrySpec.checkproc
Work of tfc_team
|
|
Add an accessor to _industry_specs array.
Work of tfc_team
|
|
toguether.
|
|
arrays to _industry_sections
|
|
about accepted goods of industry tiles, instead of magic numbers
|
|
|
|
to a total of 61, which is 53% :)
- CodeChange: To correctly accept engine-prototypes, the best-player checking has been moved to its own function, I hope it functions the same as before.
- CodeChange: Added symbolic types of PlayerID, OrderID and EngineID. For engines also added GetEngine() and IsEngineIndex(), similar to the other such functions.
- CodeChange: To correctly build industries, some tables have been moved to build_industry.h. The only way to find out currently if an industry is valid in a climate is by looping all industries and checking if it matches. Also to comply with the patch setting build_rawmaterial_industries, it is assumed that these industries do not accept any cargo of any type. This can and probably should changed in the future to some flag in their struct. Also use _opt_ptr instead of _opt.
- CodeChange: implemented the HQ checking code inspired by MarkR2 in "[ 1190944 ] Many commands not checked for security". Unfortunately it is impossible to prevent only deleting a HQ by a modified client atm.
- CodeChange: For insert order and modify order their parameters are implicitely truncated to 8 bits, instead of the 16 bits said in the comments.
|
|
|
|
|