Mercurial > hg > openttd
changeset 11163:dbb22d77aec1 draft
(svn r15513) -Cleanup: Unavailable varaction variable value does not matter, but at least it can be consistent.
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Wed, 18 Feb 2009 09:14:41 +0000 |
parents | e5f6544532af |
children | f55868ff7fa8 |
files | src/newgrf_canal.cpp src/newgrf_cargo.cpp src/newgrf_generic.cpp src/newgrf_industries.cpp src/newgrf_industrytiles.cpp src/newgrf_town.cpp |
diffstat | 6 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf_canal.cpp +++ b/src/newgrf_canal.cpp @@ -56,7 +56,7 @@ DEBUG(grf, 1, "Unhandled canal property 0x%02X", variable); *available = false; - return 0; + return UINT_MAX; }
--- a/src/newgrf_cargo.cpp +++ b/src/newgrf_cargo.cpp @@ -31,7 +31,7 @@ DEBUG(grf, 1, "Unhandled cargo property 0x%X", variable); *available = false; - return 0; + return UINT_MAX; }
--- a/src/newgrf_generic.cpp +++ b/src/newgrf_generic.cpp @@ -94,7 +94,7 @@ DEBUG(grf, 1, "Unhandled generic feature property 0x%02X", variable); *available = false; - return 0; + return UINT_MAX; }
--- a/src/newgrf_industries.cpp +++ b/src/newgrf_industries.cpp @@ -380,7 +380,7 @@ DEBUG(grf, 1, "Unhandled industry property 0x%X", variable); *available = false; - return (uint32)-1; + return UINT_MAX; } static const SpriteGroup *IndustryResolveReal(const ResolverObject *object, const SpriteGroup *group)
--- a/src/newgrf_industrytiles.cpp +++ b/src/newgrf_industrytiles.cpp @@ -102,7 +102,7 @@ DEBUG(grf, 1, "Unhandled industry tile property 0x%X", variable); *available = false; - return (uint32)-1; + return UINT_MAX; } static const SpriteGroup *IndustryTileResolveReal(const ResolverObject *object, const SpriteGroup *group)