diff options
author | smatz <smatz@openttd.org> | 2008-12-24 00:25:17 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-12-24 00:25:17 +0000 |
commit | 8a06e670673e6a01747e29db0d59cc615d003e45 (patch) | |
tree | f0aba5948b2117aec30d9cc96066e742cfcdc029 /src/ai | |
parent | 81f409e8e76fb26370e0639f7846ebbb8f74b2bd (diff) | |
download | openttd-8a06e670673e6a01747e29db0d59cc615d003e45.tar.xz |
(svn r14734) -Codechange: type of bankrupt_asked is CompanyMask, not byte
Diffstat (limited to 'src/ai')
-rw-r--r-- | src/ai/default/default.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ai/default/default.cpp b/src/ai/default/default.cpp index dc9ad189a..8e5f4a069 100644 --- a/src/ai/default/default.cpp +++ b/src/ai/default/default.cpp @@ -3889,10 +3889,10 @@ static void AiHandleTakeover(Company *c) if (IsHumanCompany(_current_company)) return; } - if (c->bankrupt_asked == 255) return; + if (c->bankrupt_asked == MAX_UVALUE(CompanyMask)) return; { - uint asked = c->bankrupt_asked; + CompanyMask asked = c->bankrupt_asked; Company *company, *best_company = NULL; int32 best_val = -1; @@ -3909,7 +3909,7 @@ static void AiHandleTakeover(Company *c) // Asked all companies? if (best_val == -1) { - c->bankrupt_asked = 255; + c->bankrupt_asked = MAX_UVALUE(CompanyMask); return; } |