yexo
7f6016031e
(svn r18762) -Codechange: unduplicate sprite layout drawing between industries and houses
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
75f717cce3
(svn r18736) -Feature [NewGRF]: implement varaction2houses vars 66 ad 67
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
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
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
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
frosch
aad988c99a
(svn r17047) -Fix: Mark house tiles dirty when triggers were triggered.
15 years ago
frosch
1c7a2cca23
(svn r17046) -Fix (r11411) [FS#3085]: Trigger house trigger 02 only for the north tile.
15 years ago
smatz
b668c24d46
(svn r16666) -Codechange: replace GetHouseSpecs() by HouseSpec::Get(), hide _house_specs[]
15 years ago
smatz
af78d6a9bb
(svn r16665) -Codechange: replace GetTownByTile() by Town::GetByTile()
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
bea3fe2b8b
(svn r16559) -Codechange: introduce Company::IsValidAiID() and Company::IsValidHumanID(), don't use IsHumanCompany() where possible
16 years ago
rubidium
f2317d0d9d
(svn r16402) -Codechange: make Resolve a function of SpriteGroup
16 years ago
rubidium
f490394aa8
(svn r16396) -Codechange: split NewGRF spritegroup into multiple subclasses instead of using a big union
16 years ago
smatz
871107f529
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
16 years ago
frosch
aea2fcd0a0
(svn r16314) -Fix (r9315): Allow accessing the houseage when the house is not yet built.
16 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.
16 years ago
rubidium
c0a8d09ca7
(svn r15428) -Codechange: consistently use colour instead of having both color and colour.
16 years ago
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
smatz
7368c740a6
(svn r14828) -Codechange: move most of save/load-specific code to separate files
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
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
f0286cb1e5
(svn r14605) -Fix (r9315): When callback 1E fails, use the standard random colour.
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
b650a86e58
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
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
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
13eab4177d
(svn r14294) -Feature[newGRF]: Add Variational Action 2 Variable 0x47 for houses, Coordinates of the house tile
16 years ago
frosch
93d0ca8731
(svn r13885) -Fix [FS#2168]: Var 0x7F is not feature-specific.
16 years ago
rubidium
3a799389eb
(svn r13731) -Codechange: make a pool of the array of players.
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
d06529ef4d
(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool.
16 years ago
frosch
17de6f9ced
(svn r13634) -Codechange: Let house var 0x65 ignore the house, the variable is queried for.
17 years ago
frosch
4e6d827ea6
(svn r13632) -Codechange: Use 'void *' for user-data of CircularTileSearch().
17 years ago
frosch
983e5a96f0
(svn r13629) -Fix [FS#2108](r13603): diameter != radius
17 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.
17 years ago
smatz
29985b768c
(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
17 years ago
belugas
237a6f554a
(svn r13519) -Feature[newGRF]: Implement var 63, variational action2 variable for Houses.
...
Or, in more simple terms, the check for the animation frame of nearby house.
17 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.
17 years ago
rubidium
2d860049a7
(svn r12844) -Fix: the industry tick trigger should only be triggered once every 256 ticks, not every tick... Also bail out of the triggers a little earlier if you know they are not going to happen anyway.
17 years ago
rubidium
5ef8c01ce7
(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.
17 years ago
rubidium
a40bba8bac
(svn r12817) -Feature: the ability to play NewGRF sounds for industries and stations.
17 years ago
rubidium
181b36ca0b
(svn r12801) -Codechange: remove the dependency of function.h in town_map.h
17 years ago
rubidium
15680e477a
(svn r12800) -Codechange: move the animated tile related functions out of texteff.cpp (it isn't a text effect after all). Also remove a few more functions from functions.
17 years ago
smatz
febc5150c9
(svn r12547) -Feature: invisibility options to make objects invisible instead of transparent
17 years ago
skidd13
4cc6140619
(svn r12513) -Codechange: rename OriginalTileRandomiser something more descriptive
17 years ago
glx
bbdb831301
(svn r12452) -Feature: [NewGRF] Add random action 2 type 84. For vehicles only.
17 years ago
skidd13
a887b79f90
(svn r12381) -Fix [FS1835] [FS1535] (r11855): The number of houses wasn't computed right. A few other things regaring the updating had to be changed. Big thanks for support to frosch123 and SmatZ, to name just a few. (Inspired by a patch of bilbo)
17 years ago
frosch
a40d761d7f
(svn r12149) -Codechange: Merge 'ground_sprite' and 'ground_pal' of DrawTileSprites into one PalSpriteID
17 years ago