(svn r11382) -Codechange: renamed COUNTBITS to CountBits, as it is no longer a macro (skidd13)
This commit is contained in:
@@ -69,7 +69,7 @@ Money CalculateCompanyValue(const Player* p)
|
||||
uint num = 0;
|
||||
|
||||
FOR_ALL_STATIONS(st) {
|
||||
if (st->owner == owner) num += COUNTBITS(st->facilities);
|
||||
if (st->owner == owner) num += CountBits(st->facilities);
|
||||
}
|
||||
|
||||
value += num * _price.station_value * 25;
|
||||
@@ -141,7 +141,7 @@ int UpdateCompanyRatingAndValue(Player *p, bool update)
|
||||
const Station* st;
|
||||
|
||||
FOR_ALL_STATIONS(st) {
|
||||
if (st->owner == owner) num += COUNTBITS(st->facilities);
|
||||
if (st->owner == owner) num += CountBits(st->facilities);
|
||||
}
|
||||
_score_part[owner][SCORE_STATIONS] = num;
|
||||
}
|
||||
@@ -186,7 +186,7 @@ int UpdateCompanyRatingAndValue(Player *p, bool update)
|
||||
|
||||
/* Generate score for variety of cargo */
|
||||
{
|
||||
uint num = COUNTBITS(p->cargo_types);
|
||||
uint num = CountBits(p->cargo_types);
|
||||
_score_part[owner][SCORE_CARGO] = num;
|
||||
if (update) p->cargo_types = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user