tron
a2362674e3
(svn r5210) Many small changes which piled up: const, unsigned, variable scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc.
2006-06-10 08:37:41 +00:00
tron
7fd88e5798
(svn r5155) - Remove the bridge branch merge (revision r5070)
2006-06-07 19:35:21 +00:00
celestar
b618b75c9b
(svn r5070) Merged the bridge branch
...
-Feature: Bridges can now be placed above:
Any railway track combination (excluding depots and waypoints)
Any road combination (excluding depots)
Clear tiles (duh), including fields
Tunnel entrances
Bridge heads
Thanks to Tron for idea and implementation, KUDr for the yapf synchronization and many others for hours of testing
There are still a number of visual problems remaining, especially when electric railways are on or under the bridge.
DO NOT REPORT THOSE BUGS FOR THE TIME BEING please.
2006-06-02 13:05:41 +00:00
celestar
0b72bcdcaa
(svn r5063) -Codechange: Add a function to determine the length of a platform (request by KUDr)
2006-06-01 09:41:35 +00:00
KUDr
308f27a3de
(svn r4987) Feature: Merged YAPF into trunk. Thanks to devs for continuous support and users for testing.
2006-05-27 16:12:16 +00:00
tron
e774caca2a
(svn r4940) Remove the dubious feature of remembering the last built depot. It serves no real purpose except causing confusion
2006-05-21 13:51:36 +00:00
tron
9bd8bccaa0
(svn r4938) Remove STATION_HANGAR, because it isn't really a station type of its own
2006-05-21 12:01:57 +00:00
tron
b5f433bf4c
(svn r4918) Move the information about the size of airports from an global array into the struct which describes an airport
2006-05-20 15:13:27 +00:00
KUDr
e02bf1db6a
(svn r4915) - Fix: SLE_UINT8 replaced by SLE_BOOL for bool variables (found by Celestar)
2006-05-19 19:36:17 +00:00
celestar
b5dd3ddbd5
(svn r4822) -Feature: Station List View can now be sorted and filtered (by waiting cargo type and facilities)
2006-05-11 10:33:58 +00:00
glx
8bb61ca472
(svn r4785) - Newstations: don't draw catenary on non-track tiles
2006-05-08 21:59:36 +00:00
peter1138
bfaf9e1489
(svn r4780) - Newstations: when building using a dynamic layout, add the station axis to the returned tile type. Also supply correct parameters to var 10.
2006-05-08 06:22:01 +00:00
peter1138
9d6ddd364e
(svn r4767) - Newstations: fix loading / use of custom ground sprites
2006-05-07 10:58:53 +00:00
peter1138
36e27af00c
(svn r4763) - Newstations: revert r4762, instead map bit the palette modifier from bit 14 to bit 31 on GRF load.
2006-05-06 22:55:21 +00:00
peter1138
8573da9d96
(svn r4762) - Newstations: make child sprites transparent.
2006-05-06 22:32:54 +00:00
peter1138
77a4bc5aac
(svn r4761) - Newstations: support platform information in variable 10 (callback parameter 1) when building a station
2006-05-06 22:30:36 +00:00
peter1138
c778716264
(svn r4758) - Newstations: add support for 'blocked' station tiles, which no train can pass.
2006-05-06 22:08:14 +00:00
peter1138
6b8b8395e4
(svn r4757) - Newstations: add saveload support for custom station speclists
2006-05-06 21:46:26 +00:00
peter1138
09bb8ba10c
(svn r4754) - Newstations: expose default station display data via a function so we can use it (rarely) in other places.
2006-05-06 20:33:22 +00:00
peter1138
cf30c682a8
(svn r4742) - Newstations: Add callbacks for building and drawing custom stations.
2006-05-04 20:00:50 +00:00
peter1138
e5d936d0fe
(svn r4739) - Newstations: remove cargo type parameter of GetCustomStationRelocation() as we can determine it internally
2006-05-04 19:21:16 +00:00
peter1138
7826236b23
(svn r4724) - Newstations: Add per-tile random data for station tiles.
2006-05-03 21:25:49 +00:00
peter1138
c722c88f43
(svn r4723) - Newstations: add TileIndex parameter to station resolver.
2006-05-03 21:19:21 +00:00
peter1138
62e6493dd0
(svn r4719) - Newstations: instead of drawing nothing, fall back to the default sprite layout if a station layout specifies so.
2006-05-03 20:35:41 +00:00
matthijs
6756304fc1
(svn r4640) - Add: IsValidDiagDirection, IsValidDirection and IsValidAxis functions.
...
- Codechange: Use IsValidDiagDirection() in CmdBuildRoadStop().
2006-05-01 09:34:23 +00:00
celestar
d50f899420
(svn r4619) -Codechange: Rename FindRoadStationSpot into FindRoadStopSpot and try to document it a little.
...
if anyone comes up with an idea on how to simplify this thing a bit, I'd be grateful
2006-04-29 09:47:43 +00:00
peter1138
d5837d5e8d
(svn r4612) - NewStations: add random bits (for graphic variation) to stations
2006-04-28 20:48:45 +00:00
glx
07ac5f583b
(svn r4602) - Fix: an assertion triggered when building a station near the south corner of the map (appeared in r4367)
2006-04-28 01:52:32 +00:00
belugas
3ac1832fd1
(svn r4593) CodeChange : Renamed spec (when using StationSpec) to statspec.
...
This is following the same scheme as for IndustrySpec
2006-04-27 18:28:56 +00:00
tron
b57640e28a
(svn r4572) Remove vehicle_leave_tile_proc
...
There's exactly one implemented function (unbarring a level crossing) and one place where it can be triggered (a train leaves a level crossing)
It's a bit overkill, so just handle this one case where it can happen
2006-04-25 07:32:33 +00:00
tron
6dbc9c9ced
(svn r4554) Replace magic numbers by TILE_{HEIGHT,SIZE}
2006-04-23 19:35:36 +00:00
tron
dd180a1e18
(svn r4541) Add a type for slopes and replace many magic numbers by the appropriate enums
2006-04-23 13:48:16 +00:00
Darkvater
0a0b8f22aa
(svn r4529) - Codechange: Use proper naming for hex numbers in debug prints eg. 0xF3A6. Use fixed lengths where applicable (newgrf). Unfortunately '%#X' is unusable since it gives 0XFF3 and '%#x' gives 0xff3 while we want 0xFF3 :P
2006-04-22 13:56:16 +00:00
peter1138
65c43cb425
(svn r4473) - Newstations:
...
- Alter parameters of CMD_BUILD_RAILROAD_STATION to accept a custom station class and id.
- Add a dynamically allocated list of custom stations that the SpecIndex (m4) references.
2006-04-19 07:17:00 +00:00
peter1138
100cc6fea7
(svn r4471) - Pools: Add a facility for calling a custom function during pool block clean up.
2006-04-18 18:48:50 +00:00
celestar
277f8cbda2
(svn r4466) -Fix: (FS#71) Game no longer crashes when the last vehicle serving a station has been deleted.
...
-Negative side effect: upon loading old games, stations whose last vehicle was a station have (temporarily) lower ratings.
-Positive side effect: station.h no longer includes vehicle.h (breaks the station.h->vehicle.h->rail.h chain)
2006-04-18 08:50:17 +00:00
peter1138
49160bde23
(svn r4462) - Newstations: ensure the chosen tile layout is available from a custom station
2006-04-17 19:26:18 +00:00
peter1138
7331bfd36a
(svn r4460) - Newstations: remove unused class_id / stat_id variables from the
...
Station struct.
2006-04-17 18:47:50 +00:00
peter1138
f52f3fa55d
(svn r4450) - NewStations, rename *CustomStationSprite() to *CustomStationSpecIndex() to reflect their use, and alter the test for determining if a station has customised graphics.
2006-04-16 17:29:37 +00:00
belugas
6ac73b104e
(svn r4426) Code Cleaning : replacing tabs with spaces, removing obvious comments, aligning arrays etc...
2006-04-15 03:08:14 +00:00
belugas
ccfeb13047
(svn r4425) Fix bug introduced in r4411 : while IS_BYTE_INSIDE, max value is STRICKLY LESS THEN. This caused airports animations to stay unanimated. Industries were similarly affected.
...
Thanks to Richk67 for finding it.
Also, more Gfx define and use.
2006-04-15 01:06:53 +00:00
belugas
c09109cc67
(svn r4411) CodeChange : Define and use some Gfx for both stations and industries. More are still to come
...
Also, a bit of code cleaning, as pointed by Tron
2006-04-14 01:54:07 +00:00
belugas
e09b87f56e
(svn r4403) CodeChange : Add GetStationGfx and make use of [G|S]etStationGfx accessors. Also, use GetStationGfx instead of directly accessing the map for functions in station_map.h
2006-04-12 20:01:52 +00:00
peter1138
7b6e932d82
(svn r4383) - Codechange: Remove extraneous code from 4354; no need to get RailTypeInfo when we already have it...
2006-04-12 12:33:21 +00:00
belugas
6f708b2efe
(svn r4367) CodeChange : Remove another direct map access in station_cmd.c. Replace an array of TileIndexDiffC by a use of loop with TileDiffXY. Thanks to Rubidium
2006-04-11 22:09:21 +00:00
peter1138
b87b68842a
(svn r4354) [Elrail][NewGRF] Codechange: Drawing of custom waypoints with custom ground sprites used the index of the rail type as an offset. With the introduction of elrails this offset is incorrect, so instead there is now a lookup table within the RailTypeInfo struct to explicitly list the offset.
2006-04-11 10:45:06 +00:00
tron
35e93e451f
(svn r4342) Change the first two parameters of commands - virtual pixel coordinates of the tile to operate on - to a TileIndex
...
Remove DoCommandByTile(), because now it does the same as DoCommand()
2006-04-10 07:15:58 +00:00
tron
25366909ae
(svn r4331) Replace some direction calculation magic with DiagDirection to make a bit more clear what's going on
2006-04-09 08:25:43 +00:00
tron
78a74a94a6
(svn r4325) When updating the vehicle count for road stops after load use the slot pointer of the vehicle instead of recalculating the road stop using the destination tile of the vehicle. Apart from being more simple this could prevent a inconsistency of slot information in the edge case when the destination tile isn't the tile of the assigned slot.
2006-04-08 13:58:19 +00:00
tron
a0e471a025
(svn r4324) Remove the unused road stop type attribute from struct RoadStop
2006-04-08 13:50:01 +00:00