From 2afcd1561aea2f14d2be7a0bf6573fc067a6e9ac Mon Sep 17 00:00:00 2001 From: peter1138 Date: Mon, 26 Mar 2007 08:43:14 +0000 Subject: [PATCH] (svn r9473) -Codechange: add 'unhandled variable' debug message to newcargo resolver --- src/newgrf_cargo.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/newgrf_cargo.cpp b/src/newgrf_cargo.cpp index 2e79d02c1c..c09cb10d2f 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; }