summaryrefslogtreecommitdiff
path: root/economy.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-10-07 07:35:15 +0000
committertron <tron@openttd.org>2005-10-07 07:35:15 +0000
commit3397e202c82cda0398ef4a642e74f2d864c5dc7d (patch)
tree75058b5a9db24d07229edde45f993401aec6bd63 /economy.c
parent2b44da199c7bb6aae62a7e6aaae7775a07d16bdd (diff)
downloadopenttd-3397e202c82cda0398ef4a642e74f2d864c5dc7d.tar.xz
(svn r3024) -Codechange: Another batch of replacements of int/uint/int16/byte/-1 with proper types and constants
Diffstat (limited to 'economy.c')
-rw-r--r--economy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/economy.c b/economy.c
index 10676e417..7acd051a0 100644
--- a/economy.c
+++ b/economy.c
@@ -1323,7 +1323,7 @@ int LoadUnloadVehicle(Vehicle *v)
GoodsEntry *ge;
int t;
uint count, cap;
- byte old_player;
+ PlayerID old_player;
bool completely_empty = true;
assert(v->current_order.type == OT_LOADING);
@@ -1560,8 +1560,8 @@ int32 CmdBuyShareInCompany(int x, int y, uint32 flags, uint32 p1, uint32 p2)
cost = CalculateCompanyValue(p) >> 2;
if (flags & DC_EXEC) {
+ PlayerID* b = p->share_owners;
int i;
- byte *b = p->share_owners;
while (*b != OWNER_SPECTATOR) b++; /* share owners is guaranteed to contain at least one OWNER_SPECTATOR */
*b = _current_player;
@@ -1602,7 +1602,7 @@ int32 CmdSellShareInCompany(int x, int y, uint32 flags, uint32 p1, uint32 p2)
cost = -(cost - (cost >> 7));
if (flags & DC_EXEC) {
- byte *b = p->share_owners;
+ PlayerID* b = p->share_owners;
while (*b != _current_player) b++; /* share owners is guaranteed to contain player */
*b = OWNER_SPECTATOR;
InvalidateWindow(WC_COMPANY, (int)p1);