Commit Graph

360 Commits (5719596ce2eba88730b32d99c1bea6a2f5846ec2)

Author SHA1 Message Date
frosch 5719596ce2 (svn r14993) -Fix (r14957, r14975): Do not reverse the train with OT_LEAVESTATION as that breaks PBS prediction. 16 years ago
frosch 1fdd53e428 (svn r14975) -Fix (r14957): Do not immediatelly move the train when leaving the station and the destination is not yet known. 16 years ago
frosch 818b162b35 (svn r14957) -Fix [FS#2516]: Do not abort train movement, when we are just about to reach the end of the platform. 16 years ago
rubidium 28ea38ae55 (svn r14949) -Cleanup: pointer coding style 16 years ago
rubidium 054787f082 (svn r14943) -Cleanup: remove some rogue spaces/replace some rogue tabs with spaces 16 years ago
michi_cc b201fb1226 (svn r14852) -Feature: Automatic reversing in front of block signals can now be disabled by setting pf.wait_oneway_signal respectively pf.wait_twoway_signal to 255. 16 years ago
michi_cc fc9b6b8872 (svn r14851) -Fix: A train reversing in a non-PBS block can't be stuck. 16 years ago
michi_cc b4289b40f4 (svn r14850) -Fix [FS#2503]: Reversing a stuck train that is then not stuck anymore did not always reset the waiting timer. 16 years ago
smatz ec7ebf2170 (svn r14835) -Change: apply the 'warn if train's income is negative' setting to other vehicle types, too 16 years ago
smatz b1f7ef7076 (svn r14831) -Codechange: use {VEHICLE} instead of Train/Ship/Road veh/Aircraft/{STRING} {COMMA} in lang files (part by Swallow) 16 years ago
smatz 91233ea596 (svn r14828) -Codechange: move most of save/load-specific code to separate files 16 years ago
rubidium 183f8df552 (svn r14826) -Fix [FS#2494]: infinite loop in order lookahead when reserving a path (Swallow) 16 years ago
rubidium f316796629 (svn r14803) -Codechange: move order list management into it's own class and remove the order count from the savegame as we can easily count that (PhilSophus) 16 years ago
rubidium abd3b8e0d7 (svn r14801) -Codechange: don't reference Vehicle::num_orders directly but through a method GetNumOrders() (PhilSophus) 16 years ago
rubidium d91baac764 (svn r14785) -Fix [FS#2132]: vehicle list for station gets closed when station view is closed even when the vehicle list is stickied. Other vehicle lists are not deleted when their 'opening' window gets closed so do the same with the station view. 16 years ago
rubidium 56d108edf8 (svn r14779) -Fix (r14747) [FS#2485]: selling an articulated vehicle removed only the first part and not the rest. 16 years ago
rubidium e83cca7d13 (svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter. 16 years ago
rubidium 0c6c3311c9 (svn r14748) -Codechange: unduplicate window updating when deleting vehicles. 16 years ago
rubidium c34ce32f26 (svn r14747) -Codechange: remove DeleteVehicleChain in favour of the vehicle destructor as that was already doing the same for a few vehicle types. 16 years ago
smatz c88a6199a7 (svn r14743) -Codechange: use INVALID_TILE to indicate station doesn't have queried facility (or station/roadstop is invalid) instead of 0 (Yexo) 16 years ago
frosch 6afd6a450f (svn r14699) -Fix (r14483): Do not use v->dest_tile for trains heading to a station. Reaching that tile does not mean reaching the station. 16 years ago
frosch d64b89838e (svn r14695) -Cleanup: When NTP is not active there is no need to set up TrainTrackFollowerData. 16 years ago
rubidium 33008f5d8b (svn r14594) -Fix [FS#2412]: trains could get their their last visited station reset when still (un)loading causing an invalid state. 16 years ago
frosch 24bd9866f8 (svn r14578) -Fix (r2389, r10811)[FS#Vikthor]: Allow capacity callbacks (15, 36) to return zero capacity. 16 years ago
michi_cc 023ce24b1a (svn r14559) -Fix [FS#2387]: A train could be blocked inside a depot if it was reversed just after leaving the depot. 16 years ago
michi_cc 147304b83d (svn r14550) -Fix [FS#2391]: Don't assert on path look-ahead when processing a not-part-of-orders depot-order. 16 years ago
rubidium 33203c67c1 (svn r14526) -Fix [FS#2379]: make sure trains stop at the end of a station; a 3/8th length train did stop 2/8th of it's length too early causing a 63/8th long train not to fit in a 4 tile station. 16 years ago
glx f28957bcc4 (svn r14521) -Fix [FS#2378]: fast trains could continue to move after a crash 16 years ago
michi_cc 4424c2e6fb (svn r14492) -Fix [FS#2366] (r14482): Conditional orders could lead to an infinite loop on path look-ahead.
Don't refactor things that don't want to be refactored, folks. And some comments can't hurt either.
16 years ago
michi_cc 5c781a921a (svn r14483) -Fix [FS#2340]: On reaching a waypoint a train could falsely be reported as lost when doing the look ahead for a path. 16 years ago
michi_cc 9a7270d147 (svn r14482) -Codechange: Use a class for saving the current train order when extending the reserved path beyond the current destination during pathfinding.
The class' destructor will make sure that the order is restored on function exit in all cases.
16 years ago
rubidium b5e467978b (svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus) 16 years ago
rubidium 3113cc17b9 (svn r14436) -Fix [FS#1793]: (fast) trains would sometimes move one time too often/little when moving from diagonal<->non-diagonal tracks (iguannab) 16 years ago
rubidium e589c7e580 (svn r14422) -Codechange: also reflect the changes of r14421 in the filenames. 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
frosch 423160f946 (svn r14405) -Fix [FS#2289]: Correct handling of selling free wagons while the following vehicle is an engine (i.e. a new train is created). 16 years ago
frosch 5fd49a8cd2 (svn r14403) -Fix (r14384): The condition was too restrictive. 16 years ago
peter1138 21a5c6bb7d (svn r14401) -Fix (r11724): Don't check articulated parts or rear multihead parts for callback 1D when moving a chain of wagons. 16 years ago
rubidium 48ece47bd9 (svn r14397) -Fix: possible buffer overrun, wrong parameter type passed to printf and && where || is meant. Found by MSVC's code analysis (Darkvater) 16 years ago
frosch fb1fae001a (svn r14384) -Fix: Moving the first vehicle of a train elsewhere might require a new unitnumber for the remaining chain. 16 years ago
rubidium 7935517470 (svn r14371) -Fix [FS#2313]: loading indicator didn't stay with the front engine when turning a train in a station. 16 years ago
frosch a4fd962adf (svn r14366) -Fix (r14362): Match multiheaded parts starting from the first vehicle in a chain. 16 years ago
frosch 6782d81142 (svn r14362) -Fix (r3403): Also connect multiheaded parts in free wagon chains. 16 years ago
smatz 7e4e999a97 (svn r14307) -Fix: when deleting a station, remove news items regarding it 16 years ago
michi_cc 5a28d3a54f (svn r14285) -Fix [FS#2263]: A train inside a wormhole could free the reservation of another train inside the wormhole. 16 years ago
michi_cc e008f58350 (svn r14284) -Fix (r13958): Trains would not look ahead and extend their reservation on a waypoint tile in all cases. 16 years ago
rubidium 6e67ea1f9d (svn r14258) -Codechange: rework the way to query the vehicle hash to make sure it always results in the same irregardless of the order of the hash-linked-list.
-Fix: desync in PBS reservation following, vehicle flooding and road vehicle overtake/follow code.
16 years ago
frosch f932e81127 (svn r14149) -Fix: When selling the front engine of a train consist with another engine at the second position, not all 'important' data was copied to the new head. 16 years ago
frosch b66b3937ed (svn r14148) -Fix (r14096) [FS#2239]: Orders were freed while they were still shared by other vehicles. 16 years ago
frosch 2dd9bc672a (svn r14131) -Fix (r13952) [FS#2250]: The reservation of adjacent stations was sometimes not freed correctly. (michi_cc) 16 years ago