Commit Graph

146 Commits (a9a8ed5188726c56df4638d69ce83a5f58e1372f)

Author SHA1 Message Date
rubidium 2be4215f43 (svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values 10 years ago
rubidium fff7216d04 (svn r26117) -Cleanup: unneeded NULL check 11 years ago
rubidium 8394abb2f5 (svn r26109) -Fix: missing initialisation 11 years ago
rubidium f018a1adc2 (svn r26102) -Fix: m_veh is not NULL by definition when IsRoadTT is true 11 years ago
rubidium a6fae2c608 (svn r26058) -Fix: handle the return value of a number of functions better 11 years ago
rubidium d89e93ff9a (svn r25609) -Fix [FS#5216]: under certain circumstances a track type change would make the end-of-line-is-red setting ineffective 11 years ago
rubidium f84b92a95d (svn r25608) -Codechange: make EndSegmentReasonBits available in yapf_base.hpp 11 years ago
rubidium ddfddffce9 (svn r24964) -Fix [FS#5416]: With YAPF the docking behaviour differed per direction; now favour docking in the direction you approached 12 years ago
peter1138 1e10e91fde (svn r24905) -Feature(ish): Implement station randomisation triggers. 12 years ago
planetmaker f00d9976f9 (svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow) 12 years ago
frosch 03278cd503 (svn r24588) -Codechange: No need to intermingle reservation-checks with railroad checks. (Juanjo) 12 years ago
frosch ddf597e618 (svn r24587) -Codechange: Improve coding style (Juanjo) 12 years ago
frosch 5386558459 (svn r24481) -Feature [FS#5127]: Make the pathfinder decide whether ships shall leave depots towards north or south. 12 years ago
frosch c7ad5b9ac0 (svn r24479) -Fix: Trains were unable to reverse in stations when using NPF. 12 years ago
rubidium d5eeab43b7 (svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files 13 years ago
truebrain aa1a0053b0 (svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC) 13 years ago
michi_cc 0e96bd02c8 (svn r23564) -Fix [FS#4888]: Extending a path reservation starting at a partially reserved rail station could fail. 13 years ago
truebrain d6e042c735 (svn r23376) -Remove: on popular demand, remove my (revoked) name from comments in the code. It was silly to name me like that to begin with ;) (based on patch by HackaLittleBit) 13 years ago
rubidium bcb93b3b75 (svn r23093) -Codechange: add a default NULL for the Z of GetTileSlope and use it 13 years ago
rubidium de980ef0f9 (svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ functions if they return the Z in pixels (like TilePixelHeight) 13 years ago
frosch 398ed7ebb8 (svn r22881) -Fix (r22875): GCC warnings on 64bit systems. 13 years ago
michi_cc dcef62040f (svn r22875) -Codechange: Add some asserts and checks to better prevent overflow of the argument to malloc. (monoid) 13 years ago
michi_cc 214e7bc51d (svn r22801) -Feature: [YAPF] Take canal/ocean speed fraction of ships into account. 13 years ago
rubidium eb2197f4c8 (svn r22410) -Document: some more bits ;) 13 years ago
smatz 57c2ca34d3 (svn r22350) -Change: make YAPF hash tables much smaller, it should improve performance significantly (about 15%) 13 years ago
smatz 5852b66c71 (svn r22348) -Codechange: split ship-specific part of yapf_node.hpp to yapf_node_ship.hpp 13 years ago
alberth 9222a30173 (svn r22145) -Codechange: Do explicit test for non-bool values. 14 years ago
alberth a14f4eb271 (svn r22144) -Codechange: Unify 'while (true)' to 'for (;;)' 14 years ago
rubidium 701bd8848a (svn r22017) -Codechange: move MarkTileDirtyByTile to viewport_func.h 14 years ago
rubidium bd921ed983 (svn r21996) -Fix [FS#4472]: [YAPF] Under some circumstances vehicles could be lost 14 years ago
rubidium 9759d57087 (svn r21815) -Fix [FS#3908]: [YAPF] Apply a pathfinder penalty for back of one-way path signals so those aren't preferred over other possibilities 14 years ago
terkhen b6148914b0 (svn r21803) -Cleanup: Remove unnecessary semicolons. 14 years ago
rubidium e1a6485c22 (svn r21706) -Fix-ish [FS#4370]: the old ship pathfinder is too stupid to provide "lost" notices; it would even get lost while following it's own path 14 years ago
smatz 61ad6990b9 (svn r21652) -Cleanup: one semicolon is enough 14 years ago
rubidium 6fd71624ef (svn r21651) -Fix [FS#4338] (r21229): infinite loop in the road pathfinder due to bouncing around in an "one way" trap; two one ways pointing towards eachother making it impossible to leave 14 years ago
rubidium d012ed5192 (svn r21631) -Fix [FS#4325]: ships with the old pathfinder would easily show up as lost, even when it would eventually find a path. Now also the distance from the "end" of the pathfinding run to the destination is compared to the current distance to the destination; if the distance to the destination at the end of the pathfinder run is less than the current distance from the destination the ship won't be marked as lost. This means that the ships with the old pathfinder will less likely get marked as lost, but due to the design of the old ship pathfinder there "lostness" is merely a best guess. When you still get a lost message 14 years ago
alberth 84c9201e0c (svn r21594) -Codechange: Whitespace fixes in ifndef/define lines. 14 years ago
rubidium 85be0be6e2 (svn r21533) -Codechange: replace some magic numbers with less magic constants 14 years ago
michi_cc 789dd1470f (svn r21524) -Fix [FS#4302]: Do not apply the last signal red pathfinder penalty when the signal is a path signal. 14 years ago
terkhen f69d280f14 (svn r21521) -Codechange: Unify some cached values that were present in both road vehicles and trains. 14 years ago
terkhen 47c9189002 (svn r21516) -Codechange: Add IsGroundVehicle function to the Vehicle class. 14 years ago
rubidium facaef9e33 (svn r21511) -Feature: vehicle lost message for ships 14 years ago
rubidium acf7613433 (svn r21510) -Feature [FS#1956]: vehicle lost message for road vehicles 14 years ago
rubidium 3390b98958 (svn r21509) -Codechange: rename the rail pathfinders "path_not_found" parameter to "path_found" and remove the ! where the variables are set / read 14 years ago
yexo aa744c5308 (svn r21372) -Cleanup: remove some broken npf debug code 14 years ago
alberth 9f3845227e (svn r21273) -Codechange: Return values should start at the same line. 14 years ago
rubidium 5a0865b294 (svn r21271) -Change: use the last red instead of last red exit penalty for making sure other waypoint entries are evaluated as well when they are occupied, e.g. when there are no signals before the waypoint but a train just beyond the waypoint is stopped (like for stations) 14 years ago
rubidium 3aafe20b58 (svn r21229) -Fix [FS#4130]: [YAPF] Road vehicles not finding the nearest depot in some (corner) cases 14 years ago
terkhen 53d59b2882 (svn r21121) -Fix (r21100): Use the cached max speed when calculating YAPF penalties for road vehicles. 14 years ago
michi_cc be4dfdd709 (svn r21107) -Fix: Don't use the maximum track speed where the maximum vehicle speed is meant. 14 years ago