(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.
This commit is contained in:
frosch
2008-03-10 15:31:07 +00:00
parent 220b2a1ae1
commit 51bbf0c84f
3 changed files with 47 additions and 19 deletions

View File

@@ -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.
*/
};
/**