diff options
author | peter1138 <peter1138@openttd.org> | 2007-03-26 08:43:14 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-03-26 08:43:14 +0000 |
commit | b30354d690daeb7169de2226704fce6a30e4f211 (patch) | |
tree | 54b8249ec437eb59fe035a6483939d7b646d0190 /src/newgrf_cargo.cpp | |
parent | e496aaac1ff0360e650846cfd258eb0126c99f11 (diff) | |
download | openttd-b30354d690daeb7169de2226704fce6a30e4f211.tar.xz |
(svn r9473) -Codechange: add 'unhandled variable' debug message to newcargo resolver
Diffstat (limited to 'src/newgrf_cargo.cpp')
-rw-r--r-- | src/newgrf_cargo.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/newgrf_cargo.cpp b/src/newgrf_cargo.cpp index 2e79d02c1..c09cb10d2 100644 --- a/src/newgrf_cargo.cpp +++ b/src/newgrf_cargo.cpp @@ -2,6 +2,7 @@ #include "stdafx.h" #include "openttd.h" +#include "debug.h" #include "cargotype.h" #include "newgrf.h" #include "newgrf_callbacks.h" @@ -29,6 +30,8 @@ static void CargoSetTriggers(const ResolverObject *object, int triggers) static uint32 CargoGetVariable(const ResolverObject *object, byte variable, byte parameter, bool *available) { + DEBUG(grf, 1, "Unhandled cargo property 0x%X", variable); + *available = false; return 0; } |