Commit Graph

62 Commits

Author SHA1 Message Date
KUDr af2a4cecde (svn r7628) -Fix: [YAPF] suppress 'Train is lost' message if pathfinding ended on the first two-way red signal due to yapf.rail_firstred_twoway_eol option. 2006-12-29 23:06:00 +00:00
KUDr 62f55edbe7 (svn r7623) - Fix: [YAPF] trains/roadvehs trying to enter the bridge ramp from under bridge rail/road (introduced by bridge merge r7573) 2006-12-29 18:40:02 +00:00
celestar d95e2c2dd1 (svn r7573) -Merged the bridge branch. Allows to build bridges of arbitrary rail/road combinations (including signals) 2006-12-27 12:38:02 +00:00
Darkvater 073e0eb3c9 (svn r7565) -Codechange: Rework DEBUG functionality. Look for appropiate debugging levels to
use in debug.h. grfmsg() is now used as a specific debug-function for grf.
2006-12-26 17:36:18 +00:00
KUDr f1a7a34f6e (svn r7255) -Comments added for CBlobBaseSimple, CBlobT classes 2006-11-24 21:37:08 +00:00
KUDr c5ea9b0824 (svn r7227) -Fix: [YAPF] Bridge YAPF Penalty Incorrect. The penalty for upward slope was incorrectly applied on bridge exit. (Danny) 2006-11-21 16:24:13 +00:00
KUDr 9b81f084af (svn r7210) -CodeChange: [YAPF] the global cache object is now not destroyed/recreated whenever the cache is invalidated. It now supports Flush() method that is used instead. It should also fix mem-leak warning produced by valgrind (Tron) 2006-11-18 19:20:47 +00:00
KUDr a9312f348c (svn r7164) -Fix: [YAPF] assert when look-ahead polynomial result (red-signal penalty) is negative. Such penalty is now added as positive penalty for the appropriate green signal. (DannyA) 2006-11-16 10:51:42 +00:00
Darkvater 5a9e70b720 (svn r7163) -Codechange: Disable compilation of additional yapf code. 2006-11-16 00:09:39 +00:00
KUDr 336e0a1775 (svn r7162) -CodeChange: disabled compilation of unused code (Darkvater) 2006-11-15 23:47:52 +00:00
KUDr ddda3c8b2f (svn r7147) -CodeChange: Don't use references if they can refer to NULL (Tron) 2006-11-14 13:42:50 +00:00
KUDr ecccf79c07 (svn r7146) -CodeChange: ST_CONST macro removed as it is no longer needed (Tron) 2006-11-14 12:02:36 +00:00
tron 55d6c98f89 (svn r7145) Remove extra semicolons 2006-11-14 11:01:59 +00:00
KUDr 605e6d75af (svn r7059) -Fix [FS#384]: Tunnel YAPF Penalty Incorrect. The penalty for upward slope was incorrectly applied on tunnel entrances. (Danny) 2006-11-04 11:44:19 +00:00
Darkvater ac2b6f39b1 (svn r7048) -Cleanup: DEBUG doesn't need a newline character, use DEBUG instead of printf and the
verb is build/built/built not build/*/build or build/*/builded.
2006-11-03 01:18:40 +00:00
tron 30ceecc1af (svn r6992) Make a const_cast<> obsolete by properly propagating the type 2006-10-28 12:43:15 +00:00
tron 93f1f8ee53 (svn r6991) Remove an unnecessary const_cast<> and incorrect comment (There is a difference between const FOO* and FOO* const) 2006-10-28 12:32:55 +00:00
KUDr c758f7d812 (svn r6800) -Feature change: [train is lost] message is now generated immediately when pathfinder can't find the path. (thanks MeusH, peter1138 and Brianetta for ideas and help). 2006-10-17 16:16:19 +00:00
KUDr c2736007e5 (svn r6791) -Fix: [YAPF] YapfFindNearestRailDepotTwoWay() did not work for train inside tunnel. 2006-10-16 19:17:30 +00:00
glx f70064e7aa (svn r6411) -Fix(r6410): forgot to update openttd*.sln (thx Darkvater and michi_cc :) )
-Cleanup: Removed UNITTEST preprocessor checks
2006-09-06 14:24:43 +00:00
glx 39ba62d48f (svn r6410) -remove unittest 2006-09-06 13:58:31 +00:00
glx 7c6851b436 (svn r6408) -Fix(r6406): compilation was broken
-Codechange: Rename TileIndexDiffCByDir to TileIndexDiffCByDiagDir because it accepts DiagDirections
2006-09-06 01:56:01 +00:00
Darkvater 80814dbb1d (svn r6406) -Codechange: Rename TileOffsByDir to TileOffsByDiagDir because it accepts
DiagDirections, and add TileOffsByDir that handles Directions.
-Codechange: Make the treeloop use TileOffsByDir().
2006-09-05 23:21:41 +00:00
rubidium 63687763e9 (svn r6381) -Cleanup: make the '/* */' comments that span multiple lines more uniform.
-Cleanup: whitespace alignment of a few tables.
2006-09-04 20:40:33 +00:00
tron 1c21c645ae (svn r6353) -Codechange: Make DestinationID a typedef of uin16, which is as large as any type of destinataion (StationID, DepotID, WaypointID) it can hold
DestinationID being a union of these types is just hassle without benefit and cannot be handled correctly everywhere because of local lack of information
2006-09-03 08:25:27 +00:00
KUDr 42682a70aa (svn r6245) -Add: added comments for all YAPF C interface functions (yapf.h) used by other modules, added FollowTrackInit() into YAPF track followers. 2006-08-30 21:10:25 +00:00
rubidium 27cee58ab8 (svn r6204) -Cleanup: replace non-indentation with spaces; like '}<TAB>else {' -> '} else {', tabs between code and comment, etc. 2006-08-28 18:53:03 +00:00
KUDr 13addec466 (svn r6166) -Fix: [YAPF] fixes one very improbable assert when adding startup node that already exists in the open-list (thanks Panzerfather) 2006-08-27 09:50:43 +00:00
KUDr d3096b84fd (svn r6164) -Fix [YAPF]: Road vehicles preferring bends - added yapf.road_curve_penalty setting with default value 100 (=YAPF_TILE_LENGTH) that is saved only in MP games (mart3p) 2006-08-27 07:23:46 +00:00
KUDr bb30f580a4 (svn r6163) -Codechange: distance rounded up (correction of r6162) 2006-08-27 07:04:14 +00:00
KUDr c279e53f8e (svn r6162) -Fix: Multistop problem caused by incorrect distance returned by YapfRoadVehDistanceToTile() (by mart3p) 2006-08-27 06:52:25 +00:00
KUDr 5a763f32a5 (svn r6160) -Fix [ 1519167 ] Bus trying to service in depot of other company (mart3p)
thanks Darkvater for hotfix (r5897)
2006-08-26 22:24:32 +00:00
truelight db8dfcd6e9 (svn r6142) -Codechange: added WaypointID (sorry DV, couldn't splits it anymore)
-Codechange: introduced DestinationID, which is in fact an union of several types
  Used in Order struct, so no longer StationID is abused for all targets.
  Hangars are a big exception, as they use a station-id with GOTO_DEPOT (go figure)
2006-08-26 16:34:03 +00:00
truelight e9443f0d7a (svn r6084) -Fix r6073: if we removed MSVC6 support, then why is unittest.dsp still around... 2006-08-24 10:11:32 +00:00
rubidium 7cfd3eb618 (svn r5934) -Cleanup: forgot some conversions to Year and to Date
-Cleanup: use _cur_year instead of _date for some (year based) comparisons
-Cleanup: remove a magic number in favour of another (less) magic number
2006-08-17 20:22:35 +00:00
Darkvater d87487c493 (svn r5897) -Fix [ 1519167 ] Bus trying to service in depot of other company (mart3p) 2006-08-14 22:23:13 +00:00
rubidium 243872b4fd (svn r5887) -Cleanup: move date related functions, defines and variables to date.[ch]
-Cleanup: fix whitespace related coding style issues in date.[ch]
-Cleanup: make original comments doxygen compatible and remove/change outdated comments
2006-08-14 14:21:15 +00:00
Darkvater 154c0b10af (svn r5813) Add x64 target to VS2005 project files (michi_cc) 2006-08-09 08:48:33 +00:00
Darkvater 54be2e503d (svn r5286) - Clean up VS2005 project files by making them identical to the VS2003 project file. Mainly put object files into a subdirectory of the project directory instead of a level higher which makes absolutely no sense. Also add some ignores, remove obsolete VS6 project files. 2006-06-16 00:28:15 +00:00
peter1138 01aec41f69 (svn r5196) - Codechange: replace two incorrect uses of TILE_HEIGHT with TILE_SIZE / 2 2006-06-09 14:37:28 +00:00
KUDr c7d1e2eab5 (svn r5169) - CodeChange: [YAPF] RVs now use YAPF_TILE_LENGTH as base unit and 2 configurable settings (slope and crossing penalties) for cost calculation 2006-06-08 17:31:03 +00:00
KUDr 80a36fe5bd (svn r5163) - CodeChange: [YAPF] "treat first red two-way signal as dead end" is not applied if train didn't pass choice.
It allows pathfinder to plan route through first red two-way signal if the train has no other choice than to pass it.
2006-06-07 21:18:08 +00:00
KUDr 4c52f88ed1 (svn r5162) - CodeChange: [YAPF] added flag "choice seen" into YAPF node for trains 2006-06-07 21:16:43 +00:00
tron be88e269b9 (svn r5155) - Remove the bridge branch merge (revision r5070) 2006-06-07 19:35:21 +00:00
KUDr ace071529e (svn r5153) - Fix: [YAPF] RVs can now plan path reversing in depot or end of road 2006-06-07 18:41:58 +00:00
KUDr f2f4ca1dc4 (svn r5148) - Fix: [YAPF] RVs can now find depot they are currently in (thanks Darkvater) 2006-06-07 17:04:22 +00:00
tron 4a26eb083b (svn r5138) Two more like r5136 2006-06-05 18:16:41 +00:00
tron aada042d57 (svn r5136) Fix various style bugs:
- Trailing whitespace
- Trailing empty lines
- Missing newline at EOF
- Missing svn:eol-style native
2006-06-05 18:10:43 +00:00
KUDr 9cf3badfcf (svn r5093) -CodeChange: [YAPF] min. debug level changed from 1 to 3 and 4 for frequent debug messages (performance stats) 2006-06-04 09:13:59 +00:00
KUDr 03f8994114 (svn r5076) CodeChange: [YAPF] Platform selection feature related settings added into regular savegames (breaks savegame compatibility only with r5070 and 5071). 2006-06-02 16:31:35 +00:00