summaryrefslogtreecommitdiff
path: root/src/newgrf_industries.h
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-06-28 02:14:40 +0000
committerbelugas <belugas@openttd.org>2007-06-28 02:14:40 +0000
commit890dfe749e5d9b9bb3799025f3f4b64194d8acaf (patch)
tree9b1d3192acc092506476fa6fe6ae2b0d81f0c30b /src/newgrf_industries.h
parent86f2f51c737d0d68e8a0b99166bb06a203f9aacc (diff)
downloadopenttd-890dfe749e5d9b9bb3799025f3f4b64194d8acaf.tar.xz
(svn r10369) -Codechange: Add the IndustryType parameter to the GetIndustryCallback function.
Sometimes, the industry might not be able to provide its type, since it does not exists at all
Diffstat (limited to 'src/newgrf_industries.h')
-rw-r--r--src/newgrf_industries.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_industries.h b/src/newgrf_industries.h
index 54a54cbf8..5da4cef1a 100644
--- a/src/newgrf_industries.h
+++ b/src/newgrf_industries.h
@@ -10,7 +10,7 @@
/* in newgrf_industry.cpp */
uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte parameter, bool *available);
-uint16 GetIndustryCallback(uint16 callback, uint32 param1, uint32 param2, Industry *industry, TileIndex tile);
+uint16 GetIndustryCallback(uint16 callback, uint32 param1, uint32 param2, Industry *industry, IndustryType type, TileIndex tile);
uint32 GetIndustryIDAtOffset(TileIndex new_tile, TileIndex old_tile, const Industry *i);
/* in newgrf_industrytiles.cpp*/