Commit Graph

127 Commits

Author SHA1 Message Date
rubidium 0d99b6c71c (svn r16421) -Codechange: do not unnecessarily remove constness or unnecessarily add it. 2009-05-24 20:29:04 +00:00
rubidium da5661a0c8 (svn r16393) -Codechange: move VehicleRail to Train. 2009-05-22 22:55:41 +00:00
rubidium c4b627af42 (svn r16392) -Codechange: move some variables (the ones that aren't caches) from VehicleRail to Train 2009-05-22 22:33:05 +00:00
rubidium 80e94b9bb1 (svn r16391) -Codechange: use Train instead of Vehicle where appropriate. 2009-05-22 22:22:46 +00:00
rubidium 7a37220881 (svn r16390) -Codechange: move u.road to RoadVehicle. 2009-05-22 20:22:20 +00:00
rubidium 441011b782 (svn r16382) -Codechange: make GetVehicleTrackdir a member function of Vehicle. 2009-05-22 18:17:20 +00:00
smatz 0af27062c4 (svn r16349) -Codechange: rename IsPlainRailTile() to IsPlainRail(), introduce shiny new IsPlainRailTile() 2009-05-18 01:26:23 +00:00
smatz 6221d74644 (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 2009-05-16 23:34:14 +00:00
rubidium 814f153b5a (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. 2009-05-16 20:10:58 +00:00
rubidium 917621b639 (svn r16312) -Codechange: unduplicate yapf (rail) cache debugging. 2009-05-15 17:32:07 +00:00
frosch 8ffb93c358 (svn r16311) -Fix: (Get|Set)TrackBits() is only valid for RAIL_TILE_NORMAL and _SIGNALS. 2009-05-15 16:07:36 +00:00
smatz f5316c5cbd (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
2009-05-10 17:27:25 +00:00
frosch 3bbf0fc87b (svn r15900) -Fix (r5076): Adding settings is not enough, you also have to use them. 2009-03-30 20:19:25 +00:00
frosch c2ced41c04 (svn r15891) -Fix (r13464): YAPF used different penalties for aqueducts than for other water tiles. 2009-03-29 18:20:02 +00:00
rubidium b25a4f8231 (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 2009-03-15 00:32:18 +00:00
rubidium 9d018723b7 (svn r15711) -Codechange: lots of whitespace cleanup/fixes 2009-03-14 18:16:29 +00:00
michi_cc a4aba77e49 (svn r15619) -Fix [FS#2701]: When trying to reserve a self-crossing path the failed reservation was sometimes not cleared completely. 2009-03-05 16:14:56 +00:00
peter1138 f0de54bc10 (svn r15609) -Fix: Code style... 2009-03-04 08:02:16 +00:00
rubidium c2d9c85c0f (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. 2009-02-19 00:15:36 +00:00
michi_cc 8bd5f10a2c (svn r15404) -Cleanup [YAPF]: A tiny bit of const correctness. 2009-02-08 01:10:48 +00:00
smatz 0d3f5e6e74 (svn r15299) -Cleanup: remove many redundant includes 2009-01-31 20:16:06 +00:00
rubidium 627d54a081 (svn r15294) -Fix: accessing of inaccessible base 2009-01-29 08:08:03 +00:00
rubidium 11da45ee55 (svn r14949) -Cleanup: pointer coding style 2009-01-10 00:31:47 +00:00
frosch 26e9c4c489 (svn r14921) -Fix [FS#2507]: Do not try to calculate a center of a train-station, when there is none. 2009-01-08 18:08:14 +00:00
frosch 8db5bda4f7 (svn r14703) -Fix (r8735): [YAPF] YapfRoadVehDistanceToTile() shall not abort searching at v->dest_tile, when it in fact tries to reach another tile. 2008-12-20 15:30:18 +00:00
rubidium 69eb6978e7 (svn r14634) -Change: _rdtsc is defined by some platforms so we can't use that name. 2008-11-26 01:03:34 +00:00
michi_cc ba5575e0fc (svn r14428) -Fix [FS#2306]: A 90-degree curve can be a safe waiting position if they are forbidden for trains. 2008-10-01 15:48:44 +00:00
rubidium 3b798599b6 (svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with. 2008-09-30 20:39:50 +00:00
smatz 9fed67a05a (svn r14351) -Codechange: call CFollowTrackT::GetSingleTramBit() only if we know it is a tram, so compiler doesn't generate code for trains and ships 2008-09-17 00:32:35 +00:00
frosch 1647597943 (svn r14305) -Fix [FS#2294] (r5033): [YAPF] Only reserve road slots for multistop when they are really reachable. 2008-09-12 23:23:41 +00:00
michi_cc 1b7de43e80 (svn r14286) -Fix [FS#2265]: If a change of conventional/electric rail coincided with the start of a station platform, stale reservations could be left behind. 2008-09-09 19:21:22 +00:00
rubidium c04ab6628b (svn r14048) -Fix (r14019) [FS#2222]: Redo the check for reserved tracks properly this time. (michi_cc) 2008-08-11 22:58:30 +00:00
smatz cc3685ffaf (svn r14024) -Fix (r14019) [YAPP]: YAPF also skips tunnels and bridges. Honor that in penalty calculations. (michi_cc) 2008-08-08 15:02:21 +00:00
smatz 872cefeb27 (svn r14023) -Fix (r13944) [YAPP]: If YAPF encountered a dead-end that had a signal on it, is could be falsely seen as a valid destination. (michi_cc) 2008-08-08 14:58:27 +00:00
rubidium de629dd62f (svn r14019) -Fix [FS#2205]: game crash after order skip while waiting for free path (michi_cc). 2008-08-08 09:31:50 +00:00
smatz dcc10a3b8f (svn r13985) -Fix (r13944): gcc 2.95 compilation 2008-08-03 20:50:12 +00:00
rubidium 773f19da05 (svn r13945) -Codechange [YAPP]: Extend CFollowTrackT to not require a Vehicle when following rail. (michi_cc) 2008-08-02 22:52:08 +00:00
rubidium 53cc7e8a5c (svn r13944) -Add [YAPP]: Add YAPF provider to find a safe tile and reserve a path. (michi_cc) 2008-08-02 22:51:53 +00:00
rubidium 2b153abd93 (svn r13943) -Codechange [YAPP]: Reserved station tiles can now be penalized more in YAPF. This should help with spread out stations. (michi_cc) 2008-08-02 22:51:38 +00:00
rubidium ecc509195a (svn r13942) -Codechange [YAPP]: Add a penalty for double slips to YAPF. (michi_cc) 2008-08-02 22:51:23 +00:00
rubidium 8c7983727e (svn r13941) -Codechange [YAPP]: Added YAPP-related penalties to YAPF. (michi_cc) 2008-08-02 22:51:07 +00:00
rubidium abc46b1e86 (svn r13940) -Add [YAPP]: YAPF is now able to reserve the found path. (michi_cc) 2008-08-02 22:50:52 +00:00
rubidium c91c12adde (svn r13939) -Add [YAPP]: Extend YAPF with the possibility to override the railtype info of the vehicle. (michi_cc) 2008-08-02 22:50:38 +00:00
rubidium 5c55922a06 (svn r13934) -Codechange [YAPP]: Handle through signals in the pathfinders. (michi_cc) 2008-08-02 22:49:10 +00:00
rubidium 7f6382badd (svn r13464) -Codechange: support NewGRF Action 0x05, type 12. 2008-06-11 13:54:01 +00:00
rubidium 3efece1284 (svn r13357) -Codechange: add constness to YAPF. 2008-06-02 06:44:06 +00:00
rubidium 923e21129c (svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games. 2008-05-29 15:13:28 +00:00
rubidium 4625695653 (svn r13251) -Codechange: rename _patches to _settings as that is more logic.
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
2008-05-25 19:17:03 +00:00
smatz ec627dedf8 (svn r13090) -Codechange: add functions for direct conversion from DiagDirection to Track and Trackbits 2008-05-14 18:31:21 +00:00
rubidium d03994098b (svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description. 2008-05-06 15:11:33 +00:00