frosch
3eaf7af980
(svn r12358) -Fix: Callback 2F returns 15 bit results starting from grf version 7.
17 years ago
frosch
ec59843136
(svn r12358) -Fix: Callback 2F returns 15 bit results starting from grf version 7.
17 years ago
frosch
c9c870b768
(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.
17 years ago
frosch
51bbf0c84f
(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.
17 years ago
peter1138
be47b47507
(svn r12139) -Fix (r12124): The global variable value should be returned, not the variable.
17 years ago
peter1138
859d768bb7
(svn r12139) -Fix (r12124): The global variable value should be returned, not the variable.
17 years ago
frosch
0aece5ed6b
(svn r12124) -Codechange: Move newgrf-variables that are common to VarAction2 and Action7/9/D to their own function.
...
-Fix: Add some variables that were missing in one or both cases.
17 years ago
frosch
c2bad6d22c
(svn r12124) -Codechange: Move newgrf-variables that are common to VarAction2 and Action7/9/D to their own function.
...
-Fix: Add some variables that were missing in one or both cases.
17 years ago
belugas
e5de785e1d
(svn r12045) -Feature-ette(newGRF): Add support for var 12, Variational Action 2
17 years ago
belugas
90973cdcef
(svn r12045) -Feature-ette(newGRF): Add support for var 12, Variational Action 2
17 years ago
rubidium
9c0c798dd8
(svn r11834) -Codechange: only include settings_type.h if needed.
17 years ago
rubidium
dc87b05e8c
(svn r11834) -Codechange: only include settings_type.h if needed.
17 years ago
rubidium
db73addb43
(svn r11702) -Codechange: move all date related stuff to date*.
17 years ago
rubidium
b9046c97fb
(svn r11702) -Codechange: move all date related stuff to date*.
17 years ago
rubidium
8ebdfb258f
(svn r11674) -Codechange: refactor some functions out of macros.h into more logical locations.
17 years ago
rubidium
01e20c9140
(svn r11674) -Codechange: refactor some functions out of macros.h into more logical locations.
17 years ago
skidd13
98f66552be
(svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit with the coding style
17 years ago
skidd13
8be526e499
(svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit with the coding style
17 years ago
rubidium
02a6debc11
(svn r11412) -Fix (r11403): animation was not turned on properly.
...
-Fix (r11410): wrong assumption about random reseeds made the whole thing reseed way too often, making the animation look very ugly.
17 years ago
rubidium
21c02fee87
(svn r11412) -Fix (r11403): animation was not turned on properly.
...
-Fix (r11410): wrong assumption about random reseeds made the whole thing reseed way too often, making the animation look very ugly.
17 years ago
rubidium
c1cf9f3396
(svn r11410) -Codechange: implement random triggers for industries.
17 years ago
rubidium
af5c2a785f
(svn r11410) -Codechange: implement random triggers for industries.
17 years ago
rubidium
a28b307c95
(svn r11173) -Codechange: rename some callback enums so they are more uniform.
17 years ago
rubidium
127c7c9b0f
(svn r11173) -Codechange: rename some callback enums so they are more uniform.
17 years ago
rubidium
08c5765c0b
(svn r11145) -Codechange: add support for "decoding" TTDPs string codes wrt to registers 0x100 to 0x10F.
17 years ago
rubidium
240285b8d8
(svn r11145) -Codechange: add support for "decoding" TTDPs string codes wrt to registers 0x100 to 0x10F.
17 years ago
rubidium
3394cbd62a
(svn r11141) -Codechange: add support for NewGRF's varaction2 operators 11, 12 and 13.
17 years ago
rubidium
ed2b6f4f72
(svn r11141) -Codechange: add support for NewGRF's varaction2 operators 11, 12 and 13.
17 years ago
rubidium
81555c732d
(svn r11139) -Codechange: add support for persistent storage for NewGRFs.
17 years ago
rubidium
60f1eb21fa
(svn r11139) -Codechange: add support for persistent storage for NewGRFs.
17 years ago
rubidium
ed96cd2711
(svn r11138) -Codechange: prepare some subsystems for persistent storage for NewGRFs.
17 years ago
rubidium
c68c83dffa
(svn r11138) -Codechange: prepare some subsystems for persistent storage for NewGRFs.
17 years ago
rubidium
92a827800f
(svn r11127) -Fix: truncate the result of 8 bits callbacks.
17 years ago
rubidium
262836a24f
(svn r11127) -Fix: truncate the result of 8 bits callbacks.
17 years ago
rubidium
4e130204ae
(svn r11121) -Fix: clear the temporary NewGRF storage every time we perform a callback so it cannot cause desyncs.
17 years ago
rubidium
f3491cb062
(svn r11121) -Fix: clear the temporary NewGRF storage every time we perform a callback so it cannot cause desyncs.
17 years ago
rubidium
655b2048e5
(svn r10773) -Codechange: use pool.CleanPool instead of CleanPool(&pool) and similarly for AddBlock*.
17 years ago
rubidium
2dd7a5d296
(svn r10773) -Codechange: use pool.CleanPool instead of CleanPool(&pool) and similarly for AddBlock*.
17 years ago
rubidium
4c356457e6
(svn r10442) -Codechange: implement the industry production callback.
18 years ago
rubidium
86c14c239f
(svn r10442) -Codechange: implement the industry production callback.
18 years ago
peter1138
948100c260
(svn r9837) -Fix: [NewGRF] Catch occurance of division-by-zero in varaction handling.
18 years ago
peter1138
b80e11c44c
(svn r9837) -Fix: [NewGRF] Catch occurance of division-by-zero in varaction handling.
18 years ago
peter1138
a112455db4
(svn r9707) -Codechange: Add some support for NewGRF var 7D, temporary storage array.
18 years ago
peter1138
e5a314399a
(svn r9707) -Codechange: Add some support for NewGRF var 7D, temporary storage array.
18 years ago
belugas
691f8578fd
(svn r9400) -Codechange: Use some more representative enum names for landscape types.
18 years ago
belugas
06d3669bb5
(svn r9400) -Codechange: Use some more representative enum names for landscape types.
18 years ago
belugas
8952924c64
(svn r9385) -Cleanup: doxygen changes. Today, we are exploring the letter N.
18 years ago
belugas
dcd510c81f
(svn r9385) -Cleanup: doxygen changes. Today, we are exploring the letter N.
18 years ago
maedhros
94db6aa1a2
(svn r9371) -Feature: Add support for variable snow lines in the arctic climate, supplied
...
by newgrf files. When this is enabled forests cannot be built below the highest
snow line, and farms can't be built above it. Houses still use the
_opt.snow_line so they are all consistent, so to make them respect the snowline
you may want to use some newhouses features as well.
18 years ago
maedhros
48f2bf9bb1
(svn r9371) -Feature: Add support for variable snow lines in the arctic climate, supplied
...
by newgrf files. When this is enabled forests cannot be built below the highest
snow line, and farms can't be built above it. Houses still use the
_opt.snow_line so they are all consistent, so to make them respect the snowline
you may want to use some newhouses features as well.
18 years ago
maedhros
209101391a
(svn r9315) -Merge: The newhouses branch. With this merge comes almost complete support for
...
the newhouses grf specs, so all newhouses grfs will be playable in the game.
Many thanks to everyone who contributed code and ideas, and all the testers
who found things we missed.
18 years ago
maedhros
73ff939ddb
(svn r9315) -Merge: The newhouses branch. With this merge comes almost complete support for
...
the newhouses grf specs, so all newhouses grfs will be playable in the game.
Many thanks to everyone who contributed code and ideas, and all the testers
who found things we missed.
18 years ago
rubidium
4169bfba06
(svn r9050) -Codechange: Foo(void) -> Foo()
18 years ago
rubidium
36bb92ae24
(svn r9050) -Codechange: Foo(void) -> Foo()
18 years ago
peter1138
32bee79485
(svn r8081) -Fix (r8075): Use a copy of the resolver object instead of the using the existing one. This fixes problems with the object scope setting.
18 years ago
peter1138
4ef8afa9e1
(svn r8081) -Fix (r8075): Use a copy of the resolver object instead of the using the existing one. This fixes problems with the object scope setting.
18 years ago
maedhros
129326425b
(svn r8075) -Feature: Add support for variable 7E - subroutines. (peter1138)
18 years ago
maedhros
4ae861880b
(svn r8075) -Feature: Add support for variable 7E - subroutines. (peter1138)
18 years ago
peter1138
1670fec525
(svn r8063) -Codechange: When evaluating newgrf varaction2s the 'last value' should start off at 0, and the result of the operation is remembered.
18 years ago
peter1138
8d5a542d9b
(svn r8063) -Codechange: When evaluating newgrf varaction2s the 'last value' should start off at 0, and the result of the operation is remembered.
18 years ago
peter1138
be3e723f51
(svn r8062) -Codechange: change newgrf varaction2 value from signed to unsigned
18 years ago
peter1138
b7e753555d
(svn r8062) -Codechange: change newgrf varaction2 value from signed to unsigned
18 years ago
celestar
582d8701ec
(svn r8058) -Codechange: Replaced an occurence of (uint32)-1 by UINT_MAX
18 years ago
celestar
8694ad9e0d
(svn r8058) -Codechange: Replaced an occurence of (uint32)-1 by UINT_MAX
18 years ago
celestar
08de6b082a
(svn r8055) -Codechange: Replace the different max, dmax, maxu whatever macros by a simple template function max(), that requires two arguments of the same type. While I'm at it change a variable called "max" to "maxval" in a function that calls max().
18 years ago
celestar
2ac0410767
(svn r8055) -Codechange: Replace the different max, dmax, maxu whatever macros by a simple template function max(), that requires two arguments of the same type. While I'm at it change a variable called "max" to "maxval" in a function that calls max().
18 years ago
peter1138
0677847569
(svn r8054) -Codechange: Use a template function instead of a macro for evaluating NewGRF var adjusts
18 years ago
peter1138
7996c9e560
(svn r8054) -Codechange: Use a template function instead of a macro for evaluating NewGRF var adjusts
18 years ago
rubidium
a7d0cdf95f
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
18 years ago
rubidium
f35ed4bbc2
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
18 years ago
KUDr
07c30785ab
(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
18 years ago
KUDr
e373ea7096
(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
18 years ago