diff options
author | rubidium <rubidium@openttd.org> | 2008-10-14 18:38:51 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-10-14 18:38:51 +0000 |
commit | b5e467978b70884033d8e25a4a9738cc17699e4e (patch) | |
tree | a41b987e5fdc223ac9abf159f9ee753f07f2234d /src/economy.cpp | |
parent | 6e397dd3f0b4999c65f0ad5d35fa9007bc6bc9d8 (diff) | |
download | openttd-b5e467978b70884033d8e25a4a9738cc17699e4e.tar.xz |
(svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus)
Diffstat (limited to 'src/economy.cpp')
-rw-r--r-- | src/economy.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index 8d068e71e..d56726618 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -993,7 +993,7 @@ static void FindSubsidyPassengerRoute(FoundRoute *fr) { Town *from,*to; - fr->distance = (uint)-1; + fr->distance = UINT_MAX; fr->from = from = GetRandomTown(); if (from == NULL || from->population < 400) return; @@ -1011,7 +1011,7 @@ static void FindSubsidyCargoRoute(FoundRoute *fr) int trans, total; CargoID cargo; - fr->distance = (uint)-1; + fr->distance = UINT_MAX; fr->from = i = GetRandomIndustry(); if (i == NULL) return; |