(svn r19814) -Codechange: give some more unnamed enums a name, in case they consisted of unrelated values use static const (u)int
This commit is contained in:
@@ -2187,10 +2187,8 @@ static void ReportNewsProductionChangeIndustry(Industry *ind, CargoID type, int
|
||||
);
|
||||
}
|
||||
|
||||
enum {
|
||||
PERCENT_TRANSPORTED_60 = 153,
|
||||
PERCENT_TRANSPORTED_80 = 204,
|
||||
};
|
||||
static const uint PERCENT_TRANSPORTED_60 = 153;
|
||||
static const uint PERCENT_TRANSPORTED_80 = 204;
|
||||
|
||||
/** Change industry production or do closure
|
||||
* @param i Industry for which changes are performed
|
||||
|
Reference in New Issue
Block a user