summaryrefslogtreecommitdiff
path: root/src/newgrf_callbacks.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-03-10 15:31:07 +0000
committerfrosch <frosch@openttd.org>2008-03-10 15:31:07 +0000
commitc9c870b768ac2c98fbb022dcbb03338262a85128 (patch)
treedabc1c126e63cbfd587b31683c64c701ea69e641 /src/newgrf_callbacks.h
parentcad30106d149ce76aad7aff92e186ddf3cf1129a (diff)
downloadopenttd-c9c870b768ac2c98fbb022dcbb03338262a85128.tar.xz
(svn r12352) -Fix: Some callback-results were treated as 8 bit, when they were 15 bit, and vice versa.
Var 0x7E procedure-results are always 15 bit. Callbacks 0x2A, 0x2C, 0x36 (sometimes), 0x39 and 0x145 are 15 bit. Non-varaction2-calculated callback-results are also affected by the 8bit masking.
Diffstat (limited to 'src/newgrf_callbacks.h')
-rw-r--r--src/newgrf_callbacks.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/newgrf_callbacks.h b/src/newgrf_callbacks.h
index b21b29f8e..40e10694c 100644
--- a/src/newgrf_callbacks.h
+++ b/src/newgrf_callbacks.h
@@ -210,6 +210,11 @@ enum CallbackID {
/** Customize the output cargo types of a newly build industry. */
CBID_INDUSTRY_OUTPUT_CARGO_TYPES = 0x14C,
+
+ /* ATTENTION:
+ * When adding new callbacks and their result is 15bit, add them to newgrf_spritegroup.cpp:Is8BitCallback().
+ * It does not harm to add them there though they are not implemented. But it does harm if they get forgotton.
+ */
};
/**