(svn r9473) -Codechange: add 'unhandled variable' debug message to newcargo resolver

This commit is contained in:
peter1138 2007-03-26 08:43:14 +00:00
parent c2312c37d6
commit 2afcd1561a
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}