Commit Graph

61 Commits (3dbc1abf14baa6b45e415f43e8ef9f5dece825df)

Author SHA1 Message Date
rubidium 360d6daf34 (svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers 14 years ago
frosch f273f2a656 (svn r20333) -Fix (r20332): Mask second operand to 5 bits to avoid differences between platforms. 14 years ago
frosch 253fd969fd (svn r20332) -Add: [NewGRF] AdvVarAct2 operators for SHL, SHR and SAR. 14 years ago
frosch d006eff7a9 (svn r19497) -Fix: [NewGRF] Bytes and words get sign-extended for temporary/persistent storage. (Spotted by yexo) 14 years ago
rubidium 9467b7c6d6 (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header 15 years ago
frosch 0e39e68794 (svn r18699) -Fix [FS#PlanetAndy]: GRF parameters were not properly initialised to zero, and not always checked for valid range. 15 years ago
frosch 01737c0a52 (svn r17672) -Revert (r8081): 'last_value' and 'reseed' are shared between procedure and main chain.
-Fix (r8075): 'scope' and 'count' are not.
15 years ago
frosch 7903e2be91 (svn r17670) -Cleanup (r12819): ResolverObject::procedure_call is not used anymore. 15 years ago
rubidium 99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
rubidium d39f442bd0 (svn r16434) -Cleanup: remove some dead code; primarily stuff that can't be reached like break after returns or break after functions that never return (i.e. NOT_REACHED) 15 years ago
rubidium c496a3e014 (svn r16421) -Codechange: do not unnecessarily remove constness or unnecessarily add it. 15 years ago
rubidium 846382a0f3 (svn r16402) -Codechange: make Resolve a function of SpriteGroup 15 years ago
rubidium 730b411878 (svn r16396) -Codechange: split NewGRF spritegroup into multiple subclasses instead of using a big union 15 years ago
smatz 50624d5c0f (svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved 15 years ago
rubidium b27adec700 (svn r16336) -Codechange: make the SpriteGroup pool more like the 'normal' pools 15 years ago
rubidium f3e0fd7416 (svn r15711) -Codechange: lots of whitespace cleanup/fixes 16 years ago
smatz 9021c20b5e (svn r15299) -Cleanup: remove many redundant includes 16 years ago
frosch d54d8bf295 (svn r13885) -Fix [FS#2168]: Var 0x7F is not feature-specific. 16 years ago
peter1138 ea965c21e1 (svn r13544) -Codechange: Add support for NewGRF varaction2 variable 5F. 16 years ago
rubidium 1ce0b03bf0 (svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description. 16 years ago
glx 5b1e423889 (svn r12947) -Fix: keep only first 15 bits for non failed callback results 16 years ago
rubidium e947fde701 (svn r12819) -Codechange: handle more NewGRFs in the same way as TTDP does it, i.e. testing the low bits for 0xFF or 0 instead of all bits. 16 years ago
belugas d2b55e7afd (svn r12760) -Fix(r12759): Remove a now useless comment 16 years ago
glx 90616adcb0 (svn r12452) -Feature: [NewGRF] Add random action 2 type 84. For vehicles only. 16 years ago
maedhros 7d2a1e5a69 (svn r12388) -Fix (r12352): Callback 14 (station sprite layout) is a 15-bit callback. 17 years ago
frosch 3eaf7af980 (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
peter1138 be47b47507 (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
belugas e5de785e1d (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 db73addb43 (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
skidd13 98f66552be (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 c1cf9f3396 (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 08c5765c0b (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 81555c732d (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 92a827800f (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 655b2048e5 (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. 17 years ago
peter1138 948100c260 (svn r9837) -Fix: [NewGRF] Catch occurance of division-by-zero in varaction handling. 17 years ago
peter1138 a112455db4 (svn r9707) -Codechange: Add some support for NewGRF var 7D, temporary storage array. 17 years ago
belugas 691f8578fd (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
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