summaryrefslogtreecommitdiff
path: root/src/rail_cmd.cpp
AgeCommit message (Collapse)Author
2007-09-14(svn r11107) -Feature: some tool so one can still build tunnels under rails ↵rubidium
(and other structures) when the owner of the structure built it on foundations and if you have enough "empty" space ofcourse. One could use the tool for some other construction needs too. Patch by frosch.
2007-09-08(svn r11059) -Fix [FS#1182]: inconsistency between Rail<->ElRail conversions ↵rubidium
of different kinds of rail containing tiles (normal rail, stations, depots, etc). Patch by SmatZ.
2007-08-30(svn r11005) -Codechange: move the tiletype specific terraforming checks to ↵rubidium
the functions for those tile types. -Codechange: barren the rail grounds on terraforming.
2007-08-30(svn r11003) -Codechange: replace Vehicle->next to Vehicle->Next() and ↵rubidium
Vehicle->SetNext() so we can trap instances that change a next pointer and (in the future) update the first/previous pointers based on that.
2007-08-16(svn r10922) -Codechange: Allow building and removing tracks and signals ↵maedhros
when there is a train on a parallel diagonal track that doesn't interact with this one. (frosch)
2007-08-02(svn r10758) -Codechange: make the depot struct use the pool item class as ↵rubidium
super class.
2007-07-30(svn r10734) -Fix [FS#1030]: Revert r10513) and add special cases for ↵peter1138
collision detection on bridges/tunnels.
2007-07-29(svn r10733) -Codechange: change MP_STREET into MP_ROAD as we use the word ↵rubidium
"road" everywhere except in the tile type.
2007-07-26(svn r10698) -Codechange [FS#1082]: simplify the code related to ↵rubidium
foundations. Primarily removal of (duplicated|magic) code and introduction of few helper functions to ease foundation determination. Patch by frosch.
2007-07-26(svn r10696) -Codechange: remove duplication of the "make sprite ↵rubidium
transparent" code.
2007-07-23(svn r10659) -Codechange: updated documentation around ↵truelight
RAIL_GROUND_FENCE_VERT[12] (frosch) -Codechange: added documentation and SPR_ enums for track fences (frosch)
2007-07-16(svn r10601) -Codechange: store (and use) the type of stations instead of ↵rubidium
hardcoding station types by graphics IDs.
2007-07-04(svn r10437) -Feature: Automatic signal completion, enabled by pressing ctrl ↵peter1138
when dragging signals. Signals will continue following track until an existing signal, junction or station are reached. This currently replaces the existing use of ctrl-drag for changing existing signal type.
2007-07-04(svn r10432) -Codechange: use existing function instead of data duplicationpeter1138
2007-06-24(svn r10308) -Codechange: some "cleanup" chunks from B. N. SmatZ!' work on ↵rubidium
fixing FS#119.
2007-06-21(svn r10246) -Fix (r10297): some forgotten money conversions and truncation ↵rubidium
issues. Thanks to benc for providing the patch.
2007-06-18(svn r10205) -Codechange: refactor returning of cost, so it can be more ↵rubidium
easily modified.
2007-06-18(svn r10200) -Codechange: add "shortcut" for !CmdFailed (CmdSucceeded).rubidium
2007-06-18(svn r10197) -Codechange: replace int32 with CommandCost where appropriate.rubidium
2007-06-03(svn r10030) -Fix [FS#823]: one could build on (some) slopes when building ↵rubidium
on slopes was disabled.
2007-05-31(svn r10006) -Fix (FS#362): allow different signal types on one tileglx
2007-05-30(svn r9988) -Codechange: remove the last direct map accesses, except the ↵rubidium
ones needed for the savegame saving/loading mechanisms.
2007-05-28(svn r9960) -Fix [FS#813]: road wasn't properly added when overbuilding a ↵rubidium
tram rails with normal rails to for a crossing.
2007-05-24(svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple ↵rubidium
road types on a single tile.
2007-05-20(svn r9892) -Codechange: lots of ground work for allowing multiple types of ↵rubidium
"road" with multiple owners on a single tile.
2007-05-07(svn r9805) -Codechange: Use HASBIT() et al for display options bits.peter1138
2007-04-18(svn r9669) -Documentation: some more doxygen fixesbelugas
2007-04-17(svn r9664) -Documentation: Doxygen corrections,errors and omissionsbelugas
2007-04-12(svn r9602) -Fix (r5833): Building rail on steep slopes ignored ↵peter1138
build_on_slopes patch setting.
2007-04-06(svn r9568) -Documentation: doxygen and comment changes: Root of src is ↵belugas
finally done. Now, time to start clearing as much as possible
2007-04-05(svn r9563) -Feature: Add more finer control to transparency options, ↵peter1138
including a new toolbar, accessible from the map menu or Ctrl X. Patch by Wolf01.
2007-04-04(svn r9556) -Documentation: doxygen and comment-style changes. 'R', 'S'.. ↵belugas
The end of the preliminary work is near
2007-04-01(svn r9542) -Fix(FS# 712): When checking if a vehicle is on a given tile, ↵belugas
and you are working on the ground tile, do not take aircrafts into account, as they do not pose any danger for the construction/destruction/conversion itself. Z stuff, in other words
2007-03-28(svn r9523) -Cleanup: doxygen changes. Time to take care of "R"belugas
2007-03-24(svn r9425) -Codechange/Fix (FS#689): Housekeeping in the convert rail ↵celestar
functions: Changed the order of error checks to generate more meaningful error messages, added some doxygen comments and replaced bitshifting by proper mathematical operations
2007-03-22(svn r9400) -Codechange: Use some more representative enum names for ↵belugas
landscape types.
2007-03-20(svn r9371) -Feature: Add support for variable snow lines in the arctic ↵maedhros
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-08(svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the ↵rubidium
coding style (and rest of the code).
2007-03-07(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};rubidium
2007-03-02(svn r8966) -Codechange: replace some if-cascades by switches.rubidium
2007-02-27(svn r8935) -Codechange: unification of track type between road and rail ↵rubidium
tiles, unification of ground type between normal rail tiles and depots/waypoints and removing the need for RailTileSubType.
2007-02-26(svn r8908) -Codechange: declaration of DrawBridgeMiddle does not belong in ↵rubidium
a map accessors header.
2007-02-24(svn r8876) -Fixtron
Replace tests with magic numbers by a simple extraction template for command parameters
2007-02-24(svn r8875) -Fixtron
Remove unnecessary EnsureNoVehicle() checks because they are - pointless per se (f.e. there are no vehicles on house tiles) - done again (f.e. using CMD_LANDSCAPE_CLEAR just a few lines later)
2007-02-23(svn r8864) -Codechange: make ClrBitT(), SetBitT() and ToggleBitT more like ↵KUDr
CLRBIT() and so on (modify value of the first parameter instead or returning the result)
2007-02-22(svn r8841) -Fixtron
Remove {,u}intswap() and replace them by Swap()
2007-02-13(svn r8701) -Codechange: replace magic numbers with enums for u.rail.track.rubidium
2007-02-13(svn r8698) -Codechange: enumify the returns of VehicleEnterTilerubidium
2007-01-19(svn r8283) -Fix (r8128): Custom waypoint drawing used wrong bits since ↵peter1138
bitshuffling occurred. Also update with other station drawing changes (code duplication, eh?)
2007-01-19(svn r8279) -Regression (r8274): Removing signals could fail under certain ↵Darkvater
circumstances (not the proper bits of p1/p2 were set to trackbits). Moved trackbits back to bits 0..2, ctrl to 3, semaphore to 4. Also lower the decision of the ctrl-override of signal/semaphore from the GUI into the cmd function since we are passing the ctrl-bit anyways. Bug(s) found by Frostregen; thanks