mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-25 14:40:10 +01:00
(svn r9473) -Codechange: add 'unhandled variable' debug message to newcargo resolver
This commit is contained in:
parent
c2312c37d6
commit
2afcd1561a
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "openttd.h"
|
#include "openttd.h"
|
||||||
|
#include "debug.h"
|
||||||
#include "cargotype.h"
|
#include "cargotype.h"
|
||||||
#include "newgrf.h"
|
#include "newgrf.h"
|
||||||
#include "newgrf_callbacks.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)
|
static uint32 CargoGetVariable(const ResolverObject *object, byte variable, byte parameter, bool *available)
|
||||||
{
|
{
|
||||||
|
DEBUG(grf, 1, "Unhandled cargo property 0x%X", variable);
|
||||||
|
|
||||||
*available = false;
|
*available = false;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user