summaryrefslogtreecommitdiff
path: root/station_cmd.c
AgeCommit message (Collapse)Author
2006-05-03(svn r4724) - Newstations: Add per-tile random data for station tiles.peter1138
2006-05-03(svn r4723) - Newstations: add TileIndex parameter to station resolver.peter1138
2006-05-03(svn r4719) - Newstations: instead of drawing nothing, fall back to the ↵peter1138
default sprite layout if a station layout specifies so.
2006-05-01(svn r4640) - Add: IsValidDiagDirection, IsValidDirection and IsValidAxis ↵matthijs
functions. - Codechange: Use IsValidDiagDirection() in CmdBuildRoadStop().
2006-04-29(svn r4619) -Codechange: Rename FindRoadStationSpot into FindRoadStopSpot ↵celestar
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-28(svn r4612) - NewStations: add random bits (for graphic variation) to stationspeter1138
2006-04-28(svn r4602) - Fix: an assertion triggered when building a station near the ↵glx
south corner of the map (appeared in r4367)
2006-04-27(svn r4593) CodeChange : Renamed spec (when using StationSpec) to statspec.belugas
This is following the same scheme as for IndustrySpec
2006-04-25(svn r4572) Remove vehicle_leave_tile_proctron
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-23(svn r4554) Replace magic numbers by TILE_{HEIGHT,SIZE}tron
2006-04-23(svn r4541) Add a type for slopes and replace many magic numbers by the ↵tron
appropriate enums
2006-04-22(svn r4529) - Codechange: Use proper naming for hex numbers in debug prints ↵Darkvater
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-19(svn r4473) - Newstations:peter1138
- 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-18(svn r4471) - Pools: Add a facility for calling a custom function during ↵peter1138
pool block clean up.
2006-04-18(svn r4466) -Fix: (FS#71) Game no longer crashes when the last vehicle ↵celestar
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-17(svn r4462) - Newstations: ensure the chosen tile layout is available from a ↵peter1138
custom station
2006-04-17(svn r4460) - Newstations: remove unused class_id / stat_id variables from the peter1138
Station struct.
2006-04-16(svn r4450) - NewStations, rename *CustomStationSprite() to ↵peter1138
*CustomStationSpecIndex() to reflect their use, and alter the test for determining if a station has customised graphics.
2006-04-15(svn r4426) Code Cleaning : replacing tabs with spaces, removing obvious ↵belugas
comments, aligning arrays etc...
2006-04-15(svn r4425) Fix bug introduced in r4411 : while IS_BYTE_INSIDE, max value is ↵belugas
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-14(svn r4411) CodeChange : Define and use some Gfx for both stations and ↵belugas
industries. More are still to come Also, a bit of code cleaning, as pointed by Tron
2006-04-12(svn r4403) CodeChange : Add GetStationGfx and make use of [G|S]etStationGfx ↵belugas
accessors. Also, use GetStationGfx instead of directly accessing the map for functions in station_map.h
2006-04-12(svn r4383) - Codechange: Remove extraneous code from 4354; no need to get ↵peter1138
RailTypeInfo when we already have it...
2006-04-11(svn r4367) CodeChange : Remove another direct map access in station_cmd.c. ↵belugas
Replace an array of TileIndexDiffC by a use of loop with TileDiffXY. Thanks to Rubidium
2006-04-11(svn r4354) [Elrail][NewGRF] Codechange: Drawing of custom waypoints with ↵peter1138
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-10(svn r4342) Change the first two parameters of commands - virtual pixel ↵tron
coordinates of the tile to operate on - to a TileIndex Remove DoCommandByTile(), because now it does the same as DoCommand()
2006-04-09(svn r4331) Replace some direction calculation magic with DiagDirection to ↵tron
make a bit more clear what's going on
2006-04-08(svn r4325) When updating the vehicle count for road stops after load use ↵tron
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(svn r4324) Remove the unused road stop type attribute from struct RoadStoptron
2006-04-08(svn r4323) -Regression: Clear the slot assignments of all vehicles heading ↵tron
twoards a road stop if that road stop gets removed This issue was fixed in r2210 and reintroduced in r4259 when the multistop handling was overhauled.
2006-04-08(svn r4320) -Fix/Codechange: rs->num_vehicles is no longer saved or loaded, ↵celestar
but computed on the fly. Partly fixes FS#101
2006-04-08(svn r4319) -Codechange: Station map accessorscelestar
2006-04-07(svn r4316) -Codechange: finished r4257 (forgot one variable there)celestar
2006-04-03(svn r4265) - Fix: compile warning on VS2005 (parameter 2 different from ↵Darkvater
declaration)
2006-04-03(svn r4259) -[multistop] Fix/Feature/Codechange:celestar
1) Improved the road vehicle allocation (aka slotting) for multistop. Stops can now accept unlimited, er... 256, vehicles. 2) Removed the "wait for stop" feature, because it did not work in practise. 3) Slotting now ignores unreachable stations. Uses NPF at the moment because the old pathfinder cannot do it (yet) 4) Now matter how many vehicles approach a station, they will always be distributed evenly over existing stops. 5) Hopefully the last fundamental change to multistop
2006-04-03(svn r4257) -Codechange: Renamed the airport_map5_tiles_* variables into ↵celestar
airport_sections_*
2006-04-03(svn r4249) -Codechange: Replace more occurences of 16 by TILE_SIZE and of 8 ↵celestar
by TILE_HEIGHT. Reverted one change from the previous commit because it was faulty
2006-04-02(svn r4242) Pass TileIndex and slope to GetSlopeTileh_*() instead of TileInfotron
2006-03-30(svn r4173) -Codechange: Use IsClearWaterTile for buoy constructioncelestar
2006-03-29(svn r4157) CodeChange : Keep on cleaning up Celestar's elrail mergebelugas
2006-03-29(svn r4150) -Feature: Merged elrails into trunk. Thanks to Tron for lots of ↵celestar
code and proofreading, thanks to peter1138 for another lot of code and ideas.
2006-03-26(svn r4128) - CodeChange: Add proper semantics for CargoID for such ↵Darkvater
variables instead of using the general byte-type.
2006-03-26(svn r4113) Moved all relevant map functions for stations to station_map.[ch]celestar
Some work with animated tiles remains. Thanks to Tron for parts of the code and lots of proof-reading and suggesting
2006-03-26(svn r4111) Fix/Remove some stale commentstron
2006-03-24(svn r4079) Add GetSation{Index,ByTile}() to get the station index resp. the ↵tron
station from a tile
2006-03-21(svn r3996) -Fix: Slope and height information returned for some tile types ↵tron
is wrong This leads to graphical glitches when drawing foundations. This doesn't fix all problems, but at least some of them.
2006-03-18(svn r3939) -Fix: No longer assume that the number of slots is 2. It was not ↵celestar
a problem up to now, but it's not The Right Thing (TM) to do either
2006-03-17(svn r3916) Get/Set the rail type by [GS]etRailType{Crossing,OnBridge,}()tron
2006-03-16(svn r3895) - Add proper SLE(G)_CONDNULL macros for the empty space ↵Darkvater
reservation in savegames and update where used - Also add this capability to settings
2006-03-12(svn r3829) Reduce the use of _error_message by directly returning error ↵tron
codes instead of using this global variable