summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-04 11:26:57 +0000
committerrubidium <rubidium@openttd.org>2009-07-04 11:26:57 +0000
commit571dfb90557e20f0f3b62288856eef68cc95ed1f (patch)
treed811e87b06b0b8fd7bd210b2d2007956d498d5c8 /src/economy.cpp
parent65f77a7bee0158dcc3aedc0a360ff65597dad1c8 (diff)
downloadopenttd-571dfb90557e20f0f3b62288856eef68cc95ed1f.tar.xz
(svn r16736) -Codechange: give some station enums a name and use that instead of 'byte'.
Diffstat (limited to 'src/economy.cpp')
-rw-r--r--src/economy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index 0688048b8..562f9e2b1 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -112,7 +112,7 @@ Money CalculateCompanyValue(const Company *c)
uint num = 0;
FOR_ALL_STATIONS(st) {
- if (st->owner == owner) num += CountBits(st->facilities);
+ if (st->owner == owner) num += CountBits((byte)st->facilities);
}
value += num * _price.station_value * 25;
@@ -184,7 +184,7 @@ int UpdateCompanyRatingAndValue(Company *c, bool update)
const Station *st;
FOR_ALL_STATIONS(st) {
- if (st->owner == owner) num += CountBits(st->facilities);
+ if (st->owner == owner) num += CountBits((byte)st->facilities);
}
_score_part[owner][SCORE_STATIONS] = num;
}