Commit Graph

351 Commits (fe730bce316520cb84c4e0594a337a64ac21ddb2)

Author SHA1 Message Date
frosch 30874b5e81 (svn r23147) -Change: [NewGRF v8] Unify the return values of boolean callbacks, and check the results for validity. 13 years ago
frosch 46e77ee24f (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 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
michi_cc f0ffa534de (svn r23072) -Feature: [NewGRF] House callback 0x148. 13 years ago
michi_cc e094d7db62 (svn r23072) -Feature: [NewGRF] House callback 0x148. 13 years ago
michi_cc 68370d2bc9 (svn r23071) -Codechange: [NewGRF] Allow passing custom extra data through the generic NewGRF animation helper class. 13 years ago
michi_cc f66cd97776 (svn r23071) -Codechange: [NewGRF] Allow passing custom extra data through the generic NewGRF animation helper class. 13 years ago
michi_cc 80766e45ba (svn r23070) -Add: [NewGRF] House variable 0x64. 13 years ago
michi_cc e7f7a749e8 (svn r23070) -Add: [NewGRF] House variable 0x64. 13 years ago
frosch bd696a6288 (svn r22923) -Codechange: Move application of the construction stage into TileLayoutSpriteGroup::ProcessRegisters(). 13 years ago
frosch de27360549 (svn r22923) -Codechange: Move application of the construction stage into TileLayoutSpriteGroup::ProcessRegisters(). 13 years ago
frosch 7a7b16336f (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 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 0f8065fef4 (svn r22635) -Fix: Correctly reseed random bits of industries and industry tiles. 13 years ago
frosch 8930337aae (svn r22635) -Fix: Correctly reseed random bits of industries and industry tiles. 13 years ago
frosch e2a5d69cb7 (svn r22634) -Codechange: Deduplicate some code. Note that zeroing 'count' is intentionally removed, it is only used together with 'scope'. 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 e8a8b6dae5 (svn r22569) -Feature: [NewGRF] Persistent storage for towns. 13 years ago
terkhen a619ad3789 (svn r22569) -Feature: [NewGRF] Persistent storage for towns. 13 years ago
terkhen db879d5bd1 (svn r22566) -Codechange: Define and use OverrideManagerBase::GetGRFID function. 13 years ago
terkhen 9f55abf51a (svn r22566) -Codechange: Define and use OverrideManagerBase::GetGRFID function. 13 years ago
terkhen 713acf1ad3 (svn r22562) -Codechange: Remove constness from TownGetVariable. 13 years ago
terkhen dd8a436cbb (svn r22562) -Codechange: Remove constness from TownGetVariable. 13 years ago
terkhen 92c429e3ee (svn r22560) -Codechange: Remove constness from House in ResolverObject. 13 years ago
terkhen 76cd19f846 (svn r22560) -Codechange: Remove constness from House in ResolverObject. 13 years ago
terkhen e392f26215 (svn r22557) -Codechange: Remove constness from AnimationBase callbacks. 13 years ago
terkhen e127fca384 (svn r22557) -Codechange: Remove constness from AnimationBase callbacks. 13 years ago
frosch becf6c823f (svn r22518) -Feature: [NewGRF] Advanced sprite layouts with register modifiers. 13 years ago
frosch a241a4ce97 (svn r22518) -Feature: [NewGRF] Advanced sprite layouts with register modifiers. 13 years ago
frosch 5ca3ac41f0 (svn r22457) -Codechange: Make the NewGRFSpriteLayout a direct member of TileLayoutSpriteGroup instead of allocating it separately. 13 years ago
frosch e55f849a29 (svn r22457) -Codechange: Make the NewGRFSpriteLayout a direct member of TileLayoutSpriteGroup instead of allocating it separately. 13 years ago
yexo faec404752 (svn r21456) -Fix: [NewGRF] make sure the parameter for house var 60 is the id of an original house 14 years ago
yexo fff4bdecd8 (svn r21456) -Fix: [NewGRF] make sure the parameter for house var 60 is the id of an original house 14 years ago
rubidium 878a06dd9a (svn r21198) -Fix: don't call variables properties in debug messages 14 years ago
rubidium a6a2fbd937 (svn r21198) -Fix: don't call variables properties in debug messages 14 years ago
alberth 063931d435 (svn r21060) -Doc: Improved wording of comments (mostly by __ln__) 14 years ago
alberth 7e48d85104 (svn r21060) -Doc: Improved wording of comments (mostly by __ln__) 14 years ago
rubidium 360d6daf34 (svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers 14 years ago
rubidium 30f2afac9b (svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers 14 years ago
rubidium 7107eef4de (svn r20627) -Codechange: unify the animation code of station, airport, house and industry tiles 14 years ago
rubidium ddf1510a23 (svn r20627) -Codechange: unify the animation code of station, airport, house and industry tiles 14 years ago
rubidium 3a6c4c2f85 (svn r20624) -Codechange: some constifying for NewGRF house 14 years ago
rubidium 9982b5fd00 (svn r20624) -Codechange: some constifying for NewGRF house 14 years ago
rubidium 514f566d7c (svn r20623) -Codechange: unify the storing of animation related information 14 years ago
rubidium e2e26190d5 (svn r20623) -Codechange: unify the storing of animation related information 14 years ago
rubidium 5a7d6249af (svn r20622) -Codechange: unify [GS]et[Statation|Object|Industry|House]AnimationFrame 14 years ago
rubidium 4efa2efdbb (svn r20622) -Codechange: unify [GS]et[Statation|Object|Industry|House]AnimationFrame 14 years ago
rubidium 3e1888287e (svn r20435) -Codechange: move spritegroup to GRFFilePropsBase and prepare it for more spritegroups 14 years ago
rubidium ca7a067b7a (svn r20435) -Codechange: move spritegroup to GRFFilePropsBase and prepare it for more spritegroups 14 years ago
rubidium da8c058b89 (svn r20401) -Codechange: let HouseSpec use GRFFileProps 14 years ago
rubidium 6d6939f844 (svn r20401) -Codechange: let HouseSpec use GRFFileProps 14 years ago
frosch 5b86c79fce (svn r20283) -Codechange: Unify start of doygen comments. 14 years ago
frosch ed4f806f1d (svn r20283) -Codechange: Unify start of doygen comments. 14 years ago
alberth 1743c86610 (svn r20266) -Doc: Mostly typo fixes, a few doxygen-related improvements. 14 years ago
alberth a825b4fa5f (svn r20266) -Doc: Mostly typo fixes, a few doxygen-related improvements. 14 years ago
rubidium 9fd2afb147 (svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :) 14 years ago
rubidium b8487afe54 (svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :) 14 years ago
rubidium 6ef7b78c8b (svn r20191) -Codechange: unVARDEF _tick_counter and move it to a more logical location 14 years ago
rubidium 644deff9d2 (svn r20191) -Codechange: unVARDEF _tick_counter and move it to a more logical location 14 years ago
rubidium 60b93f5c69 (svn r20190) -Codechange: unVARDEF _generate_world and move it to genworld 14 years ago
rubidium 73527b7b45 (svn r20190) -Codechange: unVARDEF _generate_world and move it to genworld 14 years ago
frosch bca1abe146 (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 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 dc1a95a9fd (svn r19743) -Fix: NewGrfs could access map bits of not yet constructed industries and houses during construction callbacks. 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
rubidium 5f39601d0c (svn r19707) -Add: helper functions to instantiate/fill ResolverObjects 14 years ago
rubidium 1da0086a45 (svn r19707) -Add: helper functions to instantiate/fill ResolverObjects 14 years ago
rubidium 7127338414 (svn r18872) -Codechange: introduce PaletteID and use it 15 years ago
rubidium f94c83a387 (svn r18872) -Codechange: introduce PaletteID and use it 15 years ago
frosch eded89633c (svn r18846) -Codechange: Merge DrawTileSeq into DrawCommonTileSeq. 15 years ago
frosch 24e0945bc4 (svn r18846) -Codechange: Merge DrawTileSeq into DrawCommonTileSeq. 15 years ago
frosch 9bbabadd29 (svn r18842) -Codechange: Rename SPRITE_MODIFIER_USE_OFFSET to SPRITE_MODIFIER_CUSTOM_SPRITE, invert its meaning, and also use it for industry/house layouts instead of IS_CUSTOM_SPRITE(). 15 years ago
frosch d9d75c83d5 (svn r18842) -Codechange: Rename SPRITE_MODIFIER_USE_OFFSET to SPRITE_MODIFIER_CUSTOM_SPRITE, invert its meaning, and also use it for industry/house layouts instead of IS_CUSTOM_SPRITE(). 15 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
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
yexo 5cad8dac74 (svn r18762) -Codechange: unduplicate sprite layout drawing between industries and houses 15 years ago
yexo 7f6016031e (svn r18762) -Codechange: unduplicate sprite layout drawing between industries and houses 15 years ago
frosch 340f5e8569 (svn r18761) -Fix [FS#3497]: Spritelayouts do not need an Action 1 if only using default sprites. 15 years ago
frosch 5b422d0c64 (svn r18761) -Fix [FS#3497]: Spritelayouts do not need an Action 1 if only using default sprites. 15 years ago
yexo 5e85f1a7aa (svn r18736) -Feature [NewGRF]: implement varaction2houses vars 66 ad 67 15 years ago
yexo 75f717cce3 (svn r18736) -Feature [NewGRF]: implement varaction2houses vars 66 ad 67 15 years ago
rubidium c719069e05 (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
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
rubidium 982b8ee5fc (svn r17693) -Cleanup: remove some unneeded includes 15 years ago
rubidium d6cded5380 (svn r17693) -Cleanup: remove some unneeded includes 15 years ago
rubidium 0c2f375230 (svn r17558) -Feature [NewGRF]: callbacks for houses to disable drawing foundations and to disable slope changes, like industry tile callbacks 30 and 3C. 15 years ago
rubidium 430ce19418 (svn r17558) -Feature [NewGRF]: callbacks for houses to disable drawing foundations and to disable slope changes, like industry tile callbacks 30 and 3C. 15 years ago
rubidium 99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
frosch 9765478452 (svn r17047) -Fix: Mark house tiles dirty when triggers were triggered. 15 years ago
frosch aad988c99a (svn r17047) -Fix: Mark house tiles dirty when triggers were triggered. 15 years ago
frosch 295feebafd (svn r17046) -Fix (r11411) [FS#3085]: Trigger house trigger 02 only for the north tile. 15 years ago
frosch 1c7a2cca23 (svn r17046) -Fix (r11411) [FS#3085]: Trigger house trigger 02 only for the north tile. 15 years ago
smatz 0e5af86ead (svn r16666) -Codechange: replace GetHouseSpecs() by HouseSpec::Get(), hide _house_specs[] 15 years ago
smatz b668c24d46 (svn r16666) -Codechange: replace GetHouseSpecs() by HouseSpec::Get(), hide _house_specs[] 15 years ago
smatz 7b78bae8e7 (svn r16665) -Codechange: replace GetTownByTile() by Town::GetByTile() 15 years ago
smatz af78d6a9bb (svn r16665) -Codechange: replace GetTownByTile() by Town::GetByTile() 15 years ago
smatz d39c08fd9d (svn r16664) -Codechange: move house-related stuff from town.h and town_type.h to separate files 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
smatz a2567c84a0 (svn r16559) -Codechange: introduce Company::IsValidAiID() and Company::IsValidHumanID(), don't use IsHumanCompany() where possible 15 years ago
smatz bea3fe2b8b (svn r16559) -Codechange: introduce Company::IsValidAiID() and Company::IsValidHumanID(), don't use IsHumanCompany() where possible 15 years ago
rubidium 846382a0f3 (svn r16402) -Codechange: make Resolve a function of SpriteGroup 15 years ago
rubidium f2317d0d9d (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
rubidium f490394aa8 (svn r16396) -Codechange: split NewGRF spritegroup into multiple subclasses instead of using a big union 15 years ago
smatz 0c10daa243 (svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index) 15 years ago
smatz 871107f529 (svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index) 15 years ago
frosch 87ff51f15b (svn r16314) -Fix (r9315): Allow accessing the houseage when the house is not yet built. 15 years ago
frosch aea2fcd0a0 (svn r16314) -Fix (r9315): Allow accessing the houseage when the house is not yet built. 15 years ago
frosch bec067f53b (svn r15755) -Fix: Number of houses in house variables 0x44, 0x60 and 0x61 were incorrect after 0xFF had been reached and could desync clients joining afterwards. 15 years ago
frosch c7345c6db0 (svn r15755) -Fix: Number of houses in house variables 0x44, 0x60 and 0x61 were incorrect after 0xFF had been reached and could desync clients joining afterwards. 15 years ago
rubidium 89e1afdaa0 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 16 years ago
rubidium c0a8d09ca7 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 16 years ago
smatz 9021c20b5e (svn r15299) -Cleanup: remove many redundant includes 16 years ago
smatz 0d3f5e6e74 (svn r15299) -Cleanup: remove many redundant includes 16 years ago
smatz 91233ea596 (svn r14828) -Codechange: move most of save/load-specific code to separate files 16 years ago
smatz 7368c740a6 (svn r14828) -Codechange: move most of save/load-specific code to separate files 16 years ago
frosch 70f2b95bda (svn r14611) -Fix (r13437)[FS#2421]: Store the age of a house in the map array instead of the construction year.
Note: Savegames from r13437 to now are broken and have a age of 255 years for a lot houses.
16 years ago
frosch 3d467cabe5 (svn r14611) -Fix (r13437)[FS#2421]: Store the age of a house in the map array instead of the construction year.
Note: Savegames from r13437 to now are broken and have a age of 255 years for a lot houses.
16 years ago
frosch a64298ebb9 (svn r14606) -Codechange: Unify usage of PALETTE_MODIFIER_TRANSPARENT and PALETTE_MODIFIER_COLOR in spritelayout drawing.
-Fix [FS#2419]: The modifiers were not applied in all cases.
16 years ago
frosch 259a073f0c (svn r14606) -Codechange: Unify usage of PALETTE_MODIFIER_TRANSPARENT and PALETTE_MODIFIER_COLOR in spritelayout drawing.
-Fix [FS#2419]: The modifiers were not applied in all cases.
16 years ago
frosch 795569298f (svn r14605) -Fix (r9315): When callback 1E fails, use the standard random colour. 16 years ago
frosch f0286cb1e5 (svn r14605) -Fix (r9315): When callback 1E fails, use the standard random colour. 16 years ago
frosch 1505c8f384 (svn r14488) -Fix: Synchronize drawing of spritelayouts in DrawTileLayout (Houses), IndustryDrawTileLayout, DrawStationTile, DrawTile_Station and DrawTile_Track (Waypoint).
Now transparency options, PALETTE_MODIFIER_TRANSPARENT and SPRITE_MODIFIER_OPAQUE should work for all of them.
16 years ago
frosch 5a1df325e2 (svn r14488) -Fix: Synchronize drawing of spritelayouts in DrawTileLayout (Houses), IndustryDrawTileLayout, DrawStationTile, DrawTile_Station and DrawTile_Track (Waypoint).
Now transparency options, PALETTE_MODIFIER_TRANSPARENT and SPRITE_MODIFIER_OPAQUE should work for all of them.
16 years ago
rubidium e589c7e580 (svn r14422) -Codechange: also reflect the changes of r14421 in the filenames. 16 years ago
rubidium b650a86e58 (svn r14422) -Codechange: also reflect the changes of r14421 in the filenames. 16 years ago
rubidium f56e630e5c (svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with. 16 years ago
rubidium 3b798599b6 (svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with. 16 years ago
belugas 95058df2ca (svn r14295) -Fix(r14294): If the house is not built yet, still give me proper coordinates, pretty please!
Plus, two(2) rogue tabs found their way in.
16 years ago
belugas a2b00e24b6 (svn r14295) -Fix(r14294): If the house is not built yet, still give me proper coordinates, pretty please!
Plus, two(2) rogue tabs found their way in.
16 years ago
belugas db278c68de (svn r14294) -Feature[newGRF]: Add Variational Action 2 Variable 0x47 for houses, Coordinates of the house tile 16 years ago
belugas 13eab4177d (svn r14294) -Feature[newGRF]: Add Variational Action 2 Variable 0x47 for houses, Coordinates of the house tile 16 years ago
frosch d54d8bf295 (svn r13885) -Fix [FS#2168]: Var 0x7F is not feature-specific. 16 years ago
frosch 93d0ca8731 (svn r13885) -Fix [FS#2168]: Var 0x7F is not feature-specific. 16 years ago
rubidium cde65455ac (svn r13731) -Codechange: make a pool of the array of players. 16 years ago
rubidium 3a799389eb (svn r13731) -Codechange: make a pool of the array of players. 16 years ago
rubidium 9d035df146 (svn r13729) -Fix: assumption that non-north tiles of a house do not have the 1x1 building bit set was flawed with some NewGRFs. This caused the amount of houses to differ, which causes the town radii to differ, which causes desyncs when towns are expanded. 16 years ago
rubidium e48d86fad0 (svn r13729) -Fix: assumption that non-north tiles of a house do not have the 1x1 building bit set was flawed with some NewGRFs. This caused the amount of houses to differ, which causes the town radii to differ, which causes desyncs when towns are expanded. 16 years ago
rubidium 6898a76c5f (svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool. 16 years ago
rubidium d06529ef4d (svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool. 16 years ago
frosch 545c1f1045 (svn r13634) -Codechange: Let house var 0x65 ignore the house, the variable is queried for. 16 years ago
frosch 17de6f9ced (svn r13634) -Codechange: Let house var 0x65 ignore the house, the variable is queried for. 16 years ago
frosch 2b071f84ea (svn r13632) -Codechange: Use 'void *' for user-data of CircularTileSearch(). 16 years ago
frosch 4e6d827ea6 (svn r13632) -Codechange: Use 'void *' for user-data of CircularTileSearch(). 16 years ago
frosch b5f2bd51fb (svn r13629) -Fix [FS#2108](r13603): diameter != radius 16 years ago
frosch 983e5a96f0 (svn r13629) -Fix [FS#2108](r13603): diameter != radius 16 years ago
belugas ccd27d1e5b (svn r13603) -Feature{newGRF]: Add var 65 in Variational Action 2 Variables for Houses.
This var will return the manhattan distance of the nearest house that match a given criteria.
The criterias can be: 0 : house ID/ 1 : Class ID/ 2 : grf ID
The search radius can be defined too, up to 64.
16 years ago
belugas 31b002dab0 (svn r13603) -Feature{newGRF]: Add var 65 in Variational Action 2 Variables for Houses.
This var will return the manhattan distance of the nearest house that match a given criteria.
The criterias can be: 0 : house ID/ 1 : Class ID/ 2 : grf ID
The search radius can be defined too, up to 64.
16 years ago
smatz 811ae0ac3f (svn r13565) -Change [FS#2077]: when invisibility is set, sprite sequences are now drawn until first non-opaque sprite is found (bit 14 not set)
This is to balance performance, code complexity and NewGRF requirements
16 years ago