smatz
cb13cf2543
(svn r16852) -Codechange: use FOR_ALL_CARGOSPECS for iterating over all valid CargoSpecs
2009-07-16 20:40:06 +00:00
smatz
8718babe90
(svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get()
2009-07-16 19:00:13 +00:00
smatz
c113303593
(svn r16655) -Codechange: use IsRailwayStationTile() more
2009-06-25 15:54:06 +00:00
smatz
f6a4d61cca
(svn r16643) -Codechange: replace GetStationByTile() by Station::GetByTile()
2009-06-24 17:39:54 +00:00
smatz
61a42f42c1
(svn r16640) -Codechange: move roadstop stuff to separate files
2009-06-23 21:44:48 +00:00
rubidium
2832d69272
(svn r16422) -Codechange: use const_cast for removing const and warn when const is (accidentally?) removed using C-style casts.
2009-05-24 21:09:00 +00:00
rubidium
846382a0f3
(svn r16402) -Codechange: make Resolve a function of SpriteGroup
2009-05-23 15:25:52 +00:00
rubidium
730b411878
(svn r16396) -Codechange: split NewGRF spritegroup into multiple subclasses instead of using a big union
2009-05-23 12:13:42 +00:00
peter1138
2dc1e1aea0
(svn r15957) -Fix (r4767): Set callback_param1 (var 10) to 1 only when requested.
2009-04-05 08:06:40 +00:00
peter1138
dd24d9524e
(svn r15956) -Codechange: Enumorize station spec flags.
2009-04-05 08:01:36 +00:00
peter1138
4b1728079c
(svn r15436) -Codechange: Return index of station spec within station class as a return parameter of GetCustomStationSpecByGrf(), as the index is already known. Saves on an extra loop and an extern...
2009-02-09 22:49:28 +00:00
rubidium
89e1afdaa0
(svn r15428) -Codechange: consistently use colour instead of having both color and colour.
2009-02-09 02:57:15 +00:00
smatz
9021c20b5e
(svn r15299) -Cleanup: remove many redundant includes
2009-01-31 20:16:06 +00:00
truebrain
c2406cd42d
(svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to see.
...
NoAI is an API (a framework) to build your own AIs in. See:
http://wiki.openttd.org/wiki/index.php/AI:Main_Page
With many thanks to:
- glx and Rubidium for their syncing, feedback and hard work
- Yexo for his feedback, patches, and AIs which tested the system very deep
- Morloth for his feedback and patches
- TJIP for hosting a challenge which kept NoAI on track
- All AI authors for testing our AI API, and all other people who helped in one way or another
-Remove: all old AIs and their cheats/hacks
2009-01-12 17:11:45 +00:00
rubidium
70b434355d
(svn r14956) -Fix [FS#1832]: building new station parts didn't allocate a new station spec effectively breaking variable 41. This was due to the limited number of station specs that we can have per station. This fix makes newly build station parts create a new spec until one cannot allocate new station specs anymore and it'll revert to the old behaviour (sharing station specs).
2009-01-10 14:30:01 +00:00
rubidium
28ea38ae55
(svn r14949) -Cleanup: pointer coding style
2009-01-10 00:31:47 +00:00
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.
2008-11-22 16:04:11 +00:00
frosch
3d7ab65557
(svn r14487) -Fix: The station picker preview did not draw child sprites.
2008-10-18 17:20:31 +00:00
rubidium
e589c7e580
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
2008-09-30 20:51:04 +00:00
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.
2008-09-30 20:39:50 +00:00
smatz
ff7e0b2586
(svn r14280) -Codechange: use IsRailWaypointTile() instead of IsTileType() and IsRailWaypoint() checks at several places
2008-09-09 12:26:25 +00:00
rubidium
2a567afff4
(svn r13965) -Add [YAPP]: Implement newgrf var 0x44 for stations (PBS reservation state). (michi_cc)
2008-08-02 22:57:03 +00:00
frosch
d54d8bf295
(svn r13885) -Fix [FS#2168]: Var 0x7F is not feature-specific.
2008-07-30 18:23:12 +00:00
frosch
d6e8a15c8e
(svn r13851) -Fix (r9393): GetTownByTile() is only valid for houses and roads.
2008-07-27 18:36:11 +00:00
smatz
abea03fb89
(svn r13830) -Feature: show additional NewGRF info in the Tile Info window for stations, houses and industries
2008-07-25 22:37:34 +00:00
rubidium
39514a9d68
(svn r13734) -Fix: NewGRF rail continuation would always mark a tunnel on the same axis as connected, even when the tunnel faces the wrong direction.
2008-07-19 10:10:21 +00:00
rubidium
2b85217bfe
(svn r12857) -Fix [FS#1948]: remove the last uses of AutoPtr in the station code.
2008-04-23 22:16:41 +00:00
rubidium
5a17e6b395
(svn r12817) -Feature: the ability to play NewGRF sounds for industries and stations.
2008-04-21 11:29:01 +00:00
rubidium
d010ae9408
(svn r12801) -Codechange: remove the dependency of function.h in town_map.h
2008-04-20 08:43:31 +00:00
rubidium
ba0532b595
(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.
2008-04-20 08:22:59 +00:00
peter1138
61ba65846a
(svn r12799) -Fix (r12798): Empty for-loop warnings from gcc 4.3+
2008-04-19 23:34:42 +00:00
peter1138
3b7558b89c
(svn r12798) -Feature: Add some support for NewGRF station animation. (Thanks to mart3p for samples and fixes)
2008-04-19 23:19:12 +00:00
peter1138
9c3725827a
(svn r12747) -Codechange: Add varaction retrieval of station animation frame
2008-04-17 06:53:52 +00:00
peter1138
5d755429b4
(svn r12674) -Fix [FS#1902]: Colour remaps on station sprites only worked for company colours.
2008-04-12 22:11:21 +00:00
rubidium
c51b81c247
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
2008-03-31 00:06:17 +00:00
glx
90616adcb0
(svn r12452) -Feature: [NewGRF] Add random action 2 type 84. For vehicles only.
2008-03-27 21:36:16 +00:00
smatz
1f13638d03
(svn r12368) -Codechange: use explicit body for loops and conditions and remove -Wno-empty-body from the configure script
2008-03-15 13:21:31 +00:00
frosch
7f3d56041b
(svn r12199) -Codechange: Remove magic around the results of GetTileTrackStatus().
2008-02-20 17:49:50 +00:00
frosch
a13899ee8e
(svn r12149) -Codechange: Merge 'ground_sprite' and 'ground_pal' of DrawTileSprites into one PalSpriteID
2008-02-15 18:40:42 +00:00
frosch
ae996a270b
(svn r12148) -Codechange: Merge 'image' and 'pal' of DrawTileSeqStruct into one PalSpriteID
2008-02-15 18:34:26 +00:00
frosch
90ee6a16ab
(svn r12028) -Codechange: Split common part of station var 0x67, house var 0x62, indtile var 0x60 and industry var 0x62 to 'newgrf_commons.cpp'.
2008-01-31 17:46:08 +00:00
peter1138
df7286e7c1
(svn r11881) -Cleanup: Code style for global variables.
2008-01-16 18:34:53 +00:00
peter1138
b4d476b7d1
(svn r11859) -Codechange: Update newgrf station class dropdown to use new method of generating list.
2008-01-15 10:36:51 +00:00
rubidium
90acd52f22
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
2008-01-13 01:21:35 +00:00
rubidium
2fc62eab05
(svn r11818) -Codechange: split player.h into smaller pieces.
2008-01-12 14:10:35 +00:00
rubidium
c004cc1fd9
(svn r11801) -Codechange: remove some unneeded includes from some header files.
2008-01-09 21:27:39 +00:00
rubidium
db73addb43
(svn r11702) -Codechange: move all date related stuff to date*.
2007-12-26 13:50:40 +00:00
rubidium
00c9d3ef20
(svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed.
2007-12-25 09:48:53 +00:00
rubidium
507463e420
(svn r11684) -Codechange: split gfx.h in a type and functional header.
2007-12-23 10:56:02 +00:00
rubidium
1f6043458c
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
2007-12-22 23:30:28 +00:00
rubidium
3074bca136
(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
2007-12-21 22:50:51 +00:00
glx
4fc66235cb
(svn r11679) -Add: [newgrf] support for station vars 67 and 68
2007-12-21 22:11:55 +00:00
skidd13
3ae50673a3
(svn r11484) -Codechange: Remove the doubled function SetBitT and rename the remaining to fit with the naming style
2007-11-20 13:35:54 +00:00
skidd13
c0a2c0c23e
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
2007-11-19 21:02:30 +00:00
skidd13
98f66552be
(svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit with the coding style
2007-11-19 18:38:10 +00:00
rubidium
a28b307c95
(svn r11173) -Codechange: rename some callback enums so they are more uniform.
2007-09-26 17:33:32 +00:00
rubidium
d5bc4d8b2a
(svn r10981) -Fix [FS#1156] (r10970): stations gave ratings for accepted cargo too.
2007-08-26 13:55:36 +00:00
rubidium
feb91ab5ea
(svn r10690) -Codechange: use the enum that describes all callback IDs in favor of "just" using an untyped integer.
2007-07-25 19:06:29 +00:00
rubidium
45b0b7755d
(svn r10601) -Codechange: store (and use) the type of stations instead of hardcoding station types by graphics IDs.
2007-07-16 23:55:22 +00:00
peter1138
556a5ebcc3
(svn r10509) -Codechange: cache expensive newgrf station variables during
...
sprite lookups/callbacks.
2007-07-11 16:37:20 +00:00
peter1138
855e9d0751
(svn r10470) -Fix: clamp station build date to 16 bit value for newgrf, preventing overflow and incorrect graphics shown past a certain date.
2007-07-07 20:17:01 +00:00
peter1138
2fa2da4070
(svn r10431) -Codechange: constness on static array
2007-07-04 09:41:35 +00:00
rubidium
fc201d4ad8
(svn r10266) -Codechange: keep track of the origin, time of travel and accumulated feeder share (transfers) of individual pieces of cargo. This means that cargo isn't thrown on a big pile when it's put in a station or unloaded at a station, however the GUI does not reflect these changes yet so you will not actually see it.
2007-06-22 11:58:59 +00:00
maedhros
41443a26a6
(svn r10089) -Fix (r10040): Use GetTileZ instead of GetClearGround in GetTerrainType as
...
GetTileZ is valid for any tile type. Also use GetTerrainType for stations.
2007-06-11 04:52:51 +00:00
rubidium
821e58ac95
(svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple road types on a single tile.
2007-05-24 22:41:50 +00:00
belugas
097b3b3c7b
(svn r9662) -Documentation: Doxygen corrections and @file omissions
2007-04-17 20:23:13 +00:00
peter1138
ed8a66e3d1
(svn r9620) -Codechange: apply cargo translation table to newstation variables 0x60..0x65
2007-04-13 19:32:18 +00:00
peter1138
3148fdca59
(svn r9601) -Codechange: Store grf file reference in station spec, not just GRF ID
2007-04-11 21:04:03 +00:00
belugas
691f8578fd
(svn r9400) -Codechange: Use some more representative enum names for landscape types.
2007-03-22 03:42:43 +00:00
peter1138
3c6e6a1d99
(svn r9393) -Codechange: Use newgrf town resolver as station parent scope handler
2007-03-21 20:58:01 +00:00
belugas
8952924c64
(svn r9385) -Cleanup: doxygen changes. Today, we are exploring the letter N.
2007-03-21 03:06:21 +00:00
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.
2007-03-20 13:47:00 +00:00
rubidium
4169bfba06
(svn r9050) -Codechange: Foo(void) -> Foo()
2007-03-07 11:47:46 +00:00
peter1138
6b7a4ba448
(svn r8891) -Codechange: Remove remains of global cargo scheme. All cargo mapping is now dealt with only in NewGRF code, on load where possible.
2007-02-24 23:36:40 +00:00
peter1138
b3efec2e7d
(svn r8858) -Codechange: Replace magic number test with class method for determining if a cargo is valid/active.
2007-02-23 09:56:20 +00:00
belugas
b1b5aecae9
(svn r8853) -Cleanup: doxygen changes. Correct forgotten c files to cpp files with the @file tag as well as a few general comments style
2007-02-23 01:48:53 +00:00
peter1138
2306a02f75
(svn r8849) -Codechange: Replace hardcoded global/climate cargo mapping tables with dynamically generated data. Change associated code to use new functions.
2007-02-22 22:09:51 +00:00
tron
053e2ddda5
(svn r8841) -Fix
...
Remove {,u}intswap() and replace them by Swap()
2007-02-22 08:43:02 +00:00
tron
08b110952a
(svn r8423) -Fix
...
Do not explicitly pass the station specification and the station to ResolveStation(). They are already contained in the ResolverObject
2007-01-26 20:39:36 +00:00
peter1138
ba6b7c1403
(svn r8391) -Codechange: Make normal/desert/rainforest detection for newgrf stations work
2007-01-24 15:01:20 +00:00
peter1138
ca9843424b
(svn r8128) -Codechange: Split sprite and palette remap into separate 32 bit values.
...
This lets us increase the sprite width from 14 to up to 29 bits,
effectively nulling the old sprite limit. Table changes in next commit.
2007-01-14 19:57:49 +00:00
KUDr
28e969924b
(svn r8066) - Codechange: MallocT(), CallocT(), ReallocT() now return the pointer to allocated memory instead of modifying the pointer given as parameter
2007-01-11 17:29:39 +00:00
rubidium
a7d0cdf95f
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
2007-01-10 18:56:51 +00:00
KUDr
07c30785ab
(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
2007-01-10 18:12:09 +00:00