Commit Graph

204 Commits (jgrpp)

Author SHA1 Message Date
frosch 6b61c4608f (svn r26388) -Codechange: Move resolving of Action 3 into ResolverObject constructor. 10 years ago
frosch b935cb8415 (svn r26387) -Cleanup (r26173): No need to manually clear registers before resolving. 10 years ago
frosch 3eea1befa7 (svn r26172) -Codechange: Make SpriteGroup::Resolve aware of nested calls. 11 years ago
frosch db894b0b3f (svn r26085) -Codechange: Pass ResolverObjects as reference instead of pointer since they are never NULL. 11 years ago
planetmaker c24374f99c (svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow) 12 years ago
frosch b65ece1ea9 (svn r24695) -Fix/Cleanup: Remove remaining (incorrect) usages of ResolverObject::scope and count. 12 years ago
alberth 33ff55a8f1 (svn r24693) -Doc: Add some doxymentation into the newgrf code. 12 years ago
alberth 4c9bea2a71 (svn r24692) -Cleanup: Cleanup final parts of the old resolver code. 12 years ago
alberth 69e07c3e00 (svn r24691) -Codechange: Add resolver classes for vehicles. 12 years ago
alberth e087503fd6 (svn r24690) -Codechange: Add resolver classes for industry tiles. 12 years ago
alberth 348ef7f12c (svn r24688) -Codechange: Add resolver classes for generics. 12 years ago
alberth c83db1395b (svn r24687) -Codechange: Add resolver classes for airports. 12 years ago
alberth 82e6001451 (svn r24685) -Codechange: Add resolver classes for rail types. 12 years ago
alberth c417efc962 (svn r24684) -Codechange: Add resolver classes for stations. 12 years ago
alberth a9b8b22daf (svn r24683) -Codechange: Add resolver classes for objects. 12 years ago
alberth d7b62da87b (svn r24682) -Codechange: Add resolver classes for houses. 12 years ago
alberth 0885a2370a (svn r24681) -Codechange: Add resolver classes for cargoes. 12 years ago
alberth 35cee8315a (svn r24680) -Codechange: Add resolver classes for canals. 12 years ago
alberth b985c4c0f8 (svn r24679) -Codechange: Add resolver classes for towns. 12 years ago
alberth 438495b433 (svn r24678) -Codechange: Introduce scope resolver base class and prepare for adding derived classes. 12 years ago
rubidium e40eb8177a (svn r23735) -Codechange: remove ~50 includes from headers that weren't needed 13 years ago
frosch 1ad7239247 (svn r23138) -Feature: [NewGRF] Allow passing 32bit parameters to 60+x variables (using var 7B). Currently most useful for vehicle var 60. 13 years ago
frosch e08a227b53 (svn r23136) -Change: [NewGRF v8] Deprecate old-style callback results 0xFF??. 13 years ago
michi_cc e094d7db62 (svn r23072) -Feature: [NewGRF] House callback 0x148. 13 years ago
frosch 7f228d6909 (svn r22924) -Codechange: Enhance NewGRFSpriteLayout for drawing construction stages in spritelayouts with inconsistent number of sprites per spriteset. 13 years ago
frosch de27360549 (svn r22923) -Codechange: Move application of the construction stage into TileLayoutSpriteGroup::ProcessRegisters(). 13 years ago
frosch d10168f211 (svn r22731) -Fix: [NewGRF] The construction stage sprites were incorrectly selected in cases other than 1 or 4 sprites per set. 13 years ago
frosch f0b723ebaa (svn r22723) -Fix: Do not restrict AdvVarAct2 to 255 operations. 13 years ago
michi_cc d579af11e8 (svn r22659) -Add: [NewGRF] Support for the land slope check callback for stations. 13 years ago
frosch 8930337aae (svn r22635) -Fix: Correctly reseed random bits of industries and industry tiles. 13 years ago
frosch 8b18292a2e (svn r22634) -Codechange: Deduplicate some code. Note that zeroing 'count' is intentionally removed, it is only used together with 'scope'. 13 years ago
terkhen 0749c65d74 (svn r22564) -Codechange: Rename Get and Store persistent storage functions to GetValue and StoreValue. 13 years ago
terkhen dc6218aa49 (svn r22563) -Codechange: Use a function for storing values inside the persistent storage. 13 years ago
terkhen f1cde00372 (svn r22561) -Codechange: Remove constness from Object in ResolverObject. 13 years ago
terkhen 76cd19f846 (svn r22560) -Codechange: Remove constness from House in ResolverObject. 13 years ago
terkhen e8df5563db (svn r22559) -Codechange: Remove constness from Station in ResolverObject. 13 years ago
terkhen c98a8308cc (svn r22558) -Codechange: Remove constness from BaseStation in ResolverObject. 13 years ago
frosch a241a4ce97 (svn r22518) -Feature: [NewGRF] Advanced sprite layouts with register modifiers. 13 years ago
frosch e55f849a29 (svn r22457) -Codechange: Make the NewGRFSpriteLayout a direct member of TileLayoutSpriteGroup instead of allocating it separately. 13 years ago
frosch 7415b9cca2 (svn r22456) -Codechange: Derive NewGRFSpriteLayout from DrawTileSprites for spritelayouts allocated on the heap, and make use of constructors and destructors. 13 years ago
frosch 930d0c9702 (svn r22452) -Fix (r18708): Zero register 0x100 as specified before resolving custom station foundations. 13 years ago
smatz 756cc6cf65 (svn r22116) -Codechange: use PoolBase::Clean() at more places 13 years ago
rubidium 5d0da9492e (svn r21454) -Codechange: add support for object variable 48 14 years ago
rubidium 852bde0bad (svn r20660) -Codechange: implement (most) of action2 support for objects 14 years ago
rubidium 30f2afac9b (svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers 14 years ago
rubidium 9982b5fd00 (svn r20624) -Codechange: some constifying for NewGRF house 14 years ago
frosch b6cf38a912 (svn r20422) -Change [FS#3947]: Resolve tracksprites on bridges always using the southern bridgehead as tile. 14 years ago
frosch 48c5091a7c (svn r20420) -Codechange: Add TileContext enum instead of using a bool. 14 years ago
yexo 6321eb5a00 (svn r20364) -Codechange: add infrastructure for airport callbacks 14 years ago
frosch 0e5c562da4 (svn r20332) -Add: [NewGRF] AdvVarAct2 operators for SHL, SHR and SAR. 14 years ago
frosch 72ee11a7c6 (svn r20126) -Fix [FS#3883]: Make railtype Terrain Type variable aware of RAIL_GROUND_HALF_SNOW. That is, resolve the sprites for upper and lower part of the foundation independently. 14 years ago
frosch 9060a7ac00 (svn r20108) -Change: [NewGRF] Report substitute industry type in AI railstation selection callback. 14 years ago
frosch 910aade284 (svn r19744) -Add [FS#3477]: [NewGRF] Access to random bits of houses and industries from construction callbacks 17, 28 and 2F. That is: The randombits the house/industry will start with, if construction succeeds. 14 years ago
frosch 7795303227 (svn r19743) -Fix: NewGrfs could access map bits of not yet constructed industries and houses during construction callbacks. 14 years ago
frosch c049bf3f38 (svn r19497) -Fix: [NewGRF] Bytes and words get sign-extended for temporary/persistent storage. (Spotted by yexo) 14 years ago
yexo 880fedc192 (svn r19195) -Codechange: actually draw newgrf airport tiles 14 years ago
peter1138 898e879bd9 (svn r19056) -Add: [NewGRF] Action 3/2/1 (i.e. new graphics) support for rail types. (To be documented...) 15 years ago
rubidium 82fc28f77f (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header 15 years ago
rubidium d46127a723 (svn r18514) -Codechange: make it a bit clearer that for tile layouts num_sprites (as in number of sprite sets) is not the same as num_sprites (as in number of building sprites) 15 years ago
frosch 79627b4f89 (svn r17976) -Codechange: Move CargoClass to cargotype.h and clean up including of newgrf_cargo.h 15 years ago
frosch 8e23ba540c (svn r17857) -Fix (r10442): [NewGRF] 'subtract-in' is also signed for production callback version 0. 15 years ago
frosch 2fa312aab9 (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 3863742c72 (svn r17671) -Codechange: Move ResolverObject::info_view into u.vehicle as it is only needed for them. 15 years ago
frosch d8eec0ebf0 (svn r17670) -Cleanup (r12819): ResolverObject::procedure_call is not used anymore. 15 years ago
rubidium e8ddf001c8 (svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos 15 years ago
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
rubidium 84df3ba2b4 (svn r16859) -Codechange: split the Station struct into two so parts of it can be reused for Waypoints. 15 years ago
smatz e6a165881c (svn r16664) -Codechange: move house-related stuff from town.h and town_type.h to separate files 15 years ago
rubidium 9f51f3a0f9 (svn r16404) -Fix [FS#2911] (r16378): the number of spritegroups got halved when the new pool was added, which mean there weren't enough spritegroups when you have more than about a dozen ECS vectors.
-Change: increase the spritegroup pool's maximum size to something more than the number of real sprites that OpenTTD can handle; for example ECS has about 30 spritegroups per real sprite. With the 'old' limit that would mean 'only' about 4000 real sprites worth of spritegroups could be loaded.
15 years ago
rubidium f2317d0d9d (svn r16402) -Codechange: make Resolve a function of SpriteGroup 15 years ago
rubidium bbd14acb1d (svn r16398) -Feature: make NewGRF callbacks work again; honouring the 'features' of 0.3.2.1, which was released only 5 years ago. 15 years ago
rubidium f490394aa8 (svn r16396) -Codechange: split NewGRF spritegroup into multiple subclasses instead of using a big union 15 years ago
smatz 56a7b70591 (svn r16380) -Codechange: rename pool.hpp to pool_type.hpp 15 years ago
smatz 62a7948af0 (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 10ea72a08e (svn r16336) -Codechange: make the SpriteGroup pool more like the 'normal' pools 15 years ago
frosch 93d0ca8731 (svn r13885) -Fix [FS#2168]: Var 0x7F is not feature-specific. 16 years ago
rubidium d03994098b (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
rubidium 6f15d34fe5 (svn r12495) -Codechange: reduce the dependency on newgrf_station.h (especially because newgrf_station.h includes a lot of stuff). 16 years ago
glx bbdb831301 (svn r12452) -Feature: [NewGRF] Add random action 2 type 84. For vehicles only. 16 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.
16 years ago
peter1138 4d0c443953 (svn r12122) -Codechange: Add framework for generic feature callbacks, along with some parts for AI use. 17 years ago
belugas f67b5798a0 (svn r11797) -Fix: Add protection against not already created industry while doing industry callback.
Some variables used were linked to invalid industry.
17 years ago
rubidium 38115acf5a (svn r11776) -Codechange: more header splittings to reduce the dependencies. 17 years ago
rubidium 429521a7d1 (svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h' 17 years ago
rubidium 791d68325b (svn r11199) -Fix: variable 67 and 68 not working correctly.
-Refactor: some code so there is less code duplication.
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 ed2b6f4f72 (svn r11141) -Codechange: add support for NewGRF's varaction2 operators 11, 12 and 13. 17 years ago
rubidium 60f1eb21fa (svn r11139) -Codechange: add support 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 f3491cb062 (svn r11121) -Fix: clear the temporary NewGRF storage every time we perform a callback so it cannot cause desyncs. 17 years ago
rubidium 9e3ee0e689 (svn r10690) -Codechange: use the enum that describes all callback IDs in favor of "just" using an untyped integer. 17 years ago
rubidium bb8923c336 (svn r10485) -Codechange: add a callback mechanism to determine whether building an industry is allowed at a given location. 17 years ago
rubidium 86c14c239f (svn r10442) -Codechange: implement the industry production callback. 17 years ago
belugas 30863358f9 (svn r10127) -Add: Addition of basic structure for industry tiles callbacks (unfinished).
-Codechange: ResolverObject receives member gfx, making it compatible for both industries and industry tiles
-Codechange: NewIndustryResolver now has his randombits and triggers (even if not implemented)
17 years ago
belugas 9a4a911bde (svn r10074) -Add: Addition of IndustryOverrideManager as well as the basic (and unfinished) support for callbacks for industries 17 years ago
peter1138 37a873e03c (svn r9797) -Feature: [NewGRF] Add action 1, 2 and 3 support for canals. 17 years ago
peter1138 e5a314399a (svn r9707) -Codechange: Add some support for NewGRF var 7D, temporary storage array. 17 years ago
peter1138 68572f1076 (svn r9418) -Codechange: Implement actions 1/2/3 for cargos, callback handler and custom icon sprites 17 years ago
belugas dcd510c81f (svn r9385) -Cleanup: doxygen changes. Today, we are exploring the letter N. 17 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.
17 years ago
rubidium 24c4d5b06d (svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {}; 17 years ago
rubidium 36bb92ae24 (svn r9050) -Codechange: Foo(void) -> Foo() 17 years ago
maedhros 4ae861880b (svn r8075) -Feature: Add support for variable 7E - subroutines. (peter1138) 18 years ago
rubidium 66bbf336c6 (svn r7759) -Merge: makefile rewrite. This merge features:
- A proper ./configure, so everything needs to be configured only once, not for every make.
 - Usage of makedepend when available. This greatly reduces the time needed for generating the dependencies.
 - A generator for all project files. There is a single file with sources, which is used to generate Makefiles and the project files for MSVC.
 - Proper support for OSX universal binaries.
 - Object files for non-MSVC compiles are also placed in separate directories, making is faster to switch between debug and release compiles and it does not touch the directory with the source files.
 - Functionality to make a bundle of all needed files for for example a nightly or distribution of a binary with all needed GRFs and language files.

Note: as this merge moves almost all files, it is recommended to make a backup of your working copy before updating your working copy.
18 years ago