summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-03-26 08:43:14 +0000
committerpeter1138 <peter1138@openttd.org>2007-03-26 08:43:14 +0000
commit2afcd1561aea2f14d2be7a0bf6573fc067a6e9ac (patch)
tree54b8249ec437eb59fe035a6483939d7b646d0190
parentc2312c37d6e1fc76d24a59541f3304b055d85610 (diff)
downloadopenttd-2afcd1561aea2f14d2be7a0bf6573fc067a6e9ac.tar.xz
(svn r9473) -Codechange: add 'unhandled variable' debug message to newcargo resolver
-rw-r--r--src/newgrf_cargo.cpp3
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;
}