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 | 272b2ef0e9072c6bf2ee3083c3673ae7773462ab (patch) | |
tree | a41b987e5fdc223ac9abf159f9ee753f07f2234d /src/economy.cpp | |
parent | 03bef3fb5b1c25cc887d51e13fd81c7c5129028b (diff) | |
download | openttd-272b2ef0e9072c6bf2ee3083c3673ae7773462ab.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; |