Mercurial > hg > openttd
changeset 7169:bb0d45d67816 draft
(svn r10443) -Fix: randomizing triggers should be called with callback type set to 1
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Thu, 05 Jul 2007 06:35:09 +0000 |
parents | f0216e74951d |
children | c6917d8e8c25 |
files | src/newgrf_callbacks.h src/newgrf_engine.cpp |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf_callbacks.h +++ b/src/newgrf_callbacks.h @@ -12,6 +12,9 @@ * Names are formatted as CBID_<CLASS>_<CALLBACK> */ enum CallbackID { + /* Set when calling a randomizing trigger (almost undocumented) */ + CBID_RANDOM_TRIGGER = 0x01, + /* Powered wagons, if the result is lower as 0x40 then the wagon is powered * @todo : interpret the rest of the result, aka "visual effects" */ CBID_TRAIN_WAGON_POWER = 0x10,