Jonathan G Rennison
2d66f25f6c
Merge branch 'save_ext' into improved_breakdowns
...
# Conflicts:
# src/vehicle.cpp
7 years ago
frosch
a47fb85cd8
(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)
7 years ago
Jonathan G Rennison
350c2bb24f
Make trains break down after collision with road vehicle.
7 years ago
Jonathan G Rennison
44fa555c6d
Merge branch 'save_ext' into improved_breakdowns
7 years ago
peter1138
0887289e3d
(svn r27822) -Feature: Vehicle Group Info: Add profits and occupancy display to group vehicle list (mtm, JGR)
7 years ago
Jonathan G Rennison
5ba666883b
Fix double/inconsistent updating of variables when servicing vehicle.
8 years ago
Jonathan G Rennison
dcbde21f18
Merge branch 'save_ext' into improved_breakdowns
...
# Conflicts:
# src/train_cmd.cpp
8 years ago
frosch
ba566e9126
(svn r27668) -Feature: [NewGRF] Allow composing vehicles from multiple sprites.
8 years ago
frosch
a37bb32fd6
(svn r27667) -Codechange: Add VehicleSpriteSeq::GetBounds and Draw.
8 years ago
frosch
f36539837e
(svn r27666) -Codechange: Pass vehicle sprites around using a struct VehicleSpriteSeq.
8 years ago
Jonathan G Rennison
60d5bbc0e7
Fix improved breakdowns aircraft speed-reductions.
...
Breakdown speed was wrong and possibly 0 for planes with
GRF-defined speed limits.
8 years ago
frosch
a66e0ff1f4
(svn r27584) -Codechange: Add some assertions about Vehicle::cargo_payment.
8 years ago
Jonathan G Rennison
5eed9865d6
Improved breakdowns: Various changes and fixes.
...
* Revert breakdown_chance to (mostly) its original behaviour.
* Create a new breakdown_chance_factor to hold breakdown_chance
from improved breakdowns logic.
* Revert airport crash probabilities back to original behaviour, with
modified behaviour only during emergency landings.
* Low power breakdowns now only reduce the power of the engine which
has broken down.
* Low power breakdowns no longer reduce speed directly.
* Add callback function to run whenever improved breakdowns setting
is changed. Reset breakdown_chance_factor where required.
* More whitespace/formatting...
9 years ago
Jonathan G Rennison
9742300a1e
Fix some more whitespace/formatting issues.
9 years ago
Jonathan G Rennison
5e924262f4
Fix speed reduction after critical breakdowns.
...
Previous code set vcache.cached_max_speed directly (and incorrectly),
which did not survive across save/load or network joins.
Instead add a struct Train field to store the number
of critical breakdowns since last service and do the speed reduction
properly in Train::ConsistChanged.
Slightly tweak algorithm for speed reduction.
9 years ago
Jonathan G Rennison
b652d1c42a
Limit low speed breakdowns to lower of 1/4 max speed or 28km/h.
9 years ago
Jonathan G Rennison
3ee8c76fa8
Fix desync caused by "train too heavy" advice message.
...
_current_company was changed in an unsafe and non-deterministic way.
9 years ago
frosch
0f8f738942
(svn r27426) -Change: Round loading percentage in loading indicators and conditional orders towards 50%, so that 0% and 100% mean completely empty or full.
9 years ago
Jonathan G Rennison
eed722c777
Improved breakdowns: Remove non-deterministic changes to breakdown_chance.
...
These cause desyncs in multiplayer.
9 years ago
Jonathan G Rennison
44ecaaff01
Improved breakdowns: Fix smoke persisting long after vehicles have gone.
...
Fix animation_state not being set for limited speed/power breakdowns,
such that the smoke lasted for a randomly long amount of time,
instead show a short burst of smoke.
Fix smoke for limited speed/power breakdowns only being shown 1/32 of
the time.
Make sure that a breakdown has non-zero delay before showing smoke.
9 years ago
Jonathan G Rennison
4c506a8fc8
Fix EF_NO_BREAKDOWN_SMOKE vehicle flag being ignored.
...
This is due to a bad merge/import in commit
9f5164b403
.
9 years ago
Jonathan G Rennison
876a21b3c1
Fix indentation/whitespace issues in breakdown code.
9 years ago
Jonathan G Rennison
6d695a1426
Merge branch 'master' into improved_breakdowns
9 years ago
Jonathan G Rennison
80d52eb20e
Improved breakdowns patch: fix various issues
...
* Whitespace/formatting
* Fix setting lang string
* Fix spelling of VRF_TO_HEAVY
9 years ago
patch-import
9f5164b403
Import Improved Breakdowns patch
...
Fix trailing whitespace
http://www.tt-forums.net/viewtopic.php?p=1146419#p1146419
9 years ago
planetmaker
da9a1d0c14
(svn r27222) -Fix [FS#6278]: Use the current maximum speed as limited by bridges, orders etc. for all vehicle types alike when considering increased smoke emissions of vehicles.
9 years ago
frosch
891e4c40ce
(svn r27148) -Fix: Rounding and unit-conversion inconsistencies in calls to MarkAllViewportsDirty.
10 years ago
rubidium
dc2b4f2498
(svn r26879) -Codechange: remove most MayHaveBridgeAbove calls since the data is now always accessible
10 years ago
rubidium
ac269a3f08
(svn r26863) -Codechange: move a number of Vehicle* functions into the Vehicle class
10 years ago
frosch
5853f9c714
(svn r26756) -Fix (r26747): Ground vehicle breakdown smoke was not supposed to be available yet, since it is a looping animation.
10 years ago
frosch
c6cd861997
(svn r26755) -Fix (r26747) [FS#6093]: Silence MSVC warning.
10 years ago
frosch
e704ab3921
(svn r26747) -Feature: [NewGRF] Advanced visual effects with multiple effect sprites independent of spawning model.
10 years ago
frosch
156fed1b61
(svn r26746) -Codechange: Separate enums for visual effect type and spawning model.
10 years ago
frosch
07077c2088
(svn r26745) -Codechange: Deduplicate calls to CreateEffectVehicleRel for vehicle visual effects.
10 years ago
rubidium
498556d6ce
(svn r26706) -Fix [FS#6015] (r20644): wrong breakdown sound was played for ships
10 years ago
rubidium
0d2f141c10
(svn r26699) -Fix-ish: do not crash when trying to show an error about vehicle in a NewGRF and the NewGRF was not loaded at all
10 years ago
fonsinchen
957b7c0199
(svn r26594) -Fix [FS#6006]: Don't call UpdateVehicleTimetable with dummy orders
10 years ago
fonsinchen
c81a6070cb
(svn r26547) -Codechange: Collect order travel and wait times independent of timetables
10 years ago
fonsinchen
d49dad9f9c
(svn r26546) -Codechange: Make order wait_time, travel_time and max_speed private
10 years ago
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
frosch
eb6974179d
(svn r26317) -Fix [FS#5897]: Check whether NewGRF change vehicle capacity when they are not supposed to, and truncate cargo appropiately if they are allowed to.
11 years ago
rubidium
379e83f042
(svn r26101) -Fix: NULL pointer dereference when one can't allocate an order list but wants to make implicit orders
11 years ago
frosch
e580a3fe8a
(svn r26027) -Change [FS#5669-ish]: [NewGRF] Invalidate vehicle colour palette when leaving a station.
11 years ago
fonsinchen
fb281ce23c
(svn r25903) -Codechange: Refactor RefreshNextHopsStats into an own class LinkRefresher.
11 years ago
fonsinchen
d0c610f0ec
(svn r25898) -Codechange: Add second timestamp for 'restricted links' to all edges.
11 years ago
fonsinchen
67e0f7416a
(svn r25883) -Fix: Limit recursion and branching in RefreshNextHopsStats more aggressively.
11 years ago
fonsinchen
9eb73939c9
(svn r25738) -Feature: recursively walk all branches of conditional orders in the order prediction logic
11 years ago
fonsinchen
0d9612a0fb
(svn r25737) -Codechange: move inner workings of RefreshNextHopsStats into separate function
11 years ago
fonsinchen
40120e1bad
(svn r25736) -Codechange: move condition prediction out of GetNextStoppingOrder so that we can access both branches in calling code
11 years ago
fonsinchen
2c2e143026
(svn r25735) -Feature: allow implicit orders even if no explicit ones are given.
11 years ago