Commit Graph

147 Commits (fb773a2016134c5104f1474acfc1c5bca8372c91)

Author SHA1 Message Date
smatz f85b8c4e09 (svn r17596) -Codechange: constify some tables 15 years ago
rubidium 4c548cca34 (svn r17491) -Fix [FS#3188]: road vehicles could get lost when the prelimiary destination (for the pathfinder heuristics) is unreachable. 15 years ago
smatz 992e6ff4ad (svn r17357) -Codechange: some compilers complain about implicit conversion from NULL to bool 15 years ago
rubidium 54f67b8137 (svn r17335) -Fix (r17333): don't return a pointer as boolean 15 years ago
rubidium 67468acf5a (svn r17333) -Codechange: make the road pathfinder 'interface' like the one for the rail pathfinder
-Fix [FS#3057]: road vehicles forgetting their servicing order when the path takes them away (in bird distance) from their destination first
15 years ago
rubidium 99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
rubidium 1d45e1e239 (svn r17001) -Codechange: replace some more assert(0)s to NOT_REACHED() and document why they (assert(0)) have to stay for the remaining cases. 15 years ago
rubidium eacc809fa4 (svn r16940) -Codechange: make the pathfinders behave the same when finding waypoints or stations, i.e. don't force exactly one destination tile for a waypoint 15 years ago
rubidium 196856f54e (svn r16939) -Codechange: s/RailwayStation/RailStation/ to unify the way it's written. 15 years ago
rubidium d361ecd8f0 (svn r16914) -Codechange: split Station and BaseStation into different files 15 years ago
rubidium 6435dc89fe (svn r16912) -Codechange: split waypoint.h in waypoint_base.h and waypoint_func.h 15 years ago
rubidium 100cb17fa8 (svn r16909) -Fix [FS#2996]: NewGRF stations would be triggering assertions all over the place when using the more advanced station types.
-Change: make (rail) waypoints sub classes of 'base stations', make buoys waypoints and unify code between them where possible.
15 years ago
rubidium f1d6561cc4 (svn r16907) -Codechange: make a more clear distinction between reservation functions that return a bool and that return TrackBits; GetRailStationReservation vs GetRailwayStationReservation, which one returns the bool and which one the TrackBits? 15 years ago
frosch fec6129cd1 (svn r16894) -Codechange: Add [Specialised]Vehicle::Last(). 15 years ago
michi_cc dfa16d6525 (svn r16690) -Fix [FS#3002]: Missing debug string for ESRB_SAFE_TILE in YAPF debugging helper. 15 years ago
smatz a9602401f0 (svn r16646) -Codechange: rename GetDepotByTile() to Depot::GetByTile() 15 years ago
smatz f6a4d61cca (svn r16643) -Codechange: replace GetStationByTile() by Station::GetByTile() 15 years ago
smatz af85994f7f (svn r16527) -Codechange: use static member functions instead of simple casts when converting Vehicle to specialised vehicle types. Includes safety check 15 years ago
smatz 6cf1610a08 (svn r16526) -Fix: don't cast Vehicle to RoadVehicle when it's not a RoadVehicle 15 years ago
frosch a75f564af4 (svn r16521) -Fix [FS#2946] (r13945): Do not access 'compatible_railtypes' for road vehicles. (causing invalid reads since r16391/16392) 15 years ago
rubidium c496a3e014 (svn r16421) -Codechange: do not unnecessarily remove constness or unnecessarily add it. 15 years ago
rubidium 4c0542c17f (svn r16393) -Codechange: move VehicleRail to Train. 15 years ago
rubidium 6350648a6c (svn r16392) -Codechange: move some variables (the ones that aren't caches) from VehicleRail to Train 15 years ago
rubidium 1324100d69 (svn r16391) -Codechange: use Train instead of Vehicle where appropriate. 15 years ago
rubidium 489253b630 (svn r16390) -Codechange: move u.road to RoadVehicle. 15 years ago
rubidium 86fc432293 (svn r16382) -Codechange: make GetVehicleTrackdir a member function of Vehicle. 15 years ago
smatz 05db91dc65 (svn r16349) -Codechange: rename IsPlainRailTile() to IsPlainRail(), introduce shiny new IsPlainRailTile() 15 years ago
smatz d495dc5dbc (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 15 years ago
rubidium f9b692c921 (svn r16323) -Fix [FS#2900]: desyncs due to the fact that depot searching with a maximum search depth simply does not work with YAPF's caches. 15 years ago
rubidium 8e4ba4640f (svn r16312) -Codechange: unduplicate yapf (rail) cache debugging. 15 years ago
frosch 1205f02b43 (svn r16311) -Fix: (Get|Set)TrackBits() is only valid for RAIL_TILE_NORMAL and _SIGNALS. 15 years ago
smatz ce7dff4acc (svn r16269) -Codechange: use gcc's ability to check parameters sent to printf-like functions
-Fix: wrong number of parameters or wrong parameter types sent to printf-like functions at several places
15 years ago
frosch 5b06f0fbad (svn r15900) -Fix (r5076): Adding settings is not enough, you also have to use them. 15 years ago
frosch 973a014a73 (svn r15891) -Fix (r13464): YAPF used different penalties for aqueducts than for other water tiles. 15 years ago
rubidium c3e87f345d (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 16 years ago
rubidium f3e0fd7416 (svn r15711) -Codechange: lots of whitespace cleanup/fixes 16 years ago
michi_cc 09f95fa801 (svn r15619) -Fix [FS#2701]: When trying to reserve a self-crossing path the failed reservation was sometimes not cleared completely. 16 years ago
peter1138 ceea4927df (svn r15609) -Fix: Code style... 16 years ago
rubidium 29173de379 (svn r15518) -Fix [FS#2631]: use distance to closest station tile as estimate for YAPF too (NPF already does so). This makes it behave 'better' with wide stations. 16 years ago
michi_cc 26c4a02c8b (svn r15404) -Cleanup [YAPF]: A tiny bit of const correctness. 16 years ago
smatz 9021c20b5e (svn r15299) -Cleanup: remove many redundant includes 16 years ago
rubidium 19a2029206 (svn r15294) -Fix: accessing of inaccessible base 16 years ago
rubidium 28ea38ae55 (svn r14949) -Cleanup: pointer coding style 16 years ago
frosch fc381496b7 (svn r14921) -Fix [FS#2507]: Do not try to calculate a center of a train-station, when there is none. 16 years ago
frosch b916d20e1c (svn r14703) -Fix (r8735): [YAPF] YapfRoadVehDistanceToTile() shall not abort searching at v->dest_tile, when it in fact tries to reach another tile. 16 years ago
rubidium c7a052200d (svn r14634) -Change: _rdtsc is defined by some platforms so we can't use that name. 16 years ago
michi_cc 166793bd93 (svn r14428) -Fix [FS#2306]: A 90-degree curve can be a safe waiting position if they are forbidden for trains. 16 years ago
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. 16 years ago
smatz 615844dd5d (svn r14351) -Codechange: call CFollowTrackT::GetSingleTramBit() only if we know it is a tram, so compiler doesn't generate code for trains and ships 16 years ago
frosch ede0dd6a72 (svn r14305) -Fix [FS#2294] (r5033): [YAPF] Only reserve road slots for multistop when they are really reachable. 16 years ago