From 571dfb90557e20f0f3b62288856eef68cc95ed1f Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 4 Jul 2009 11:26:57 +0000 Subject: (svn r16736) -Codechange: give some station enums a name and use that instead of 'byte'. --- src/economy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/economy.cpp') 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; } -- cgit v1.2.3-70-g09d2