Commit Graph

22248 Commits (b59f1be2357421899110e9d9df3bbf7aa0a21116)
 

Author SHA1 Message Date
Jonathan G Rennison b59f1be235 Merge branch 'improved_breakdowns' into improved_breakdowns-sx 9 years ago
Jonathan G Rennison 7caebc2a77 Avoid aircraft leaving the state machine in the event of a breakdown.
This can result in airport state machine blocks being left
erroneously occupied, blocking the airport.
9 years ago
Jonathan G Rennison 6890e0af35 Merge branch 'improved_breakdowns' into improved_breakdowns-sx 9 years ago
Jonathan G Rennison 5b2dc8bcd8 Fix vehicle needs repair speed limits being incorrect in vehicle details. 9 years ago
Jonathan G Rennison fe2277dfbc Merge branch 'improved_breakdowns' into improved_breakdowns-sx
# Conflicts:
#	src/saveload/vehicle_sl.cpp
#	src/table/settings.ini
9 years ago
Jonathan G Rennison e03d97eab6 Improved breakdowns: Fix string parameter count issues.
Fix whitespace.
9 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 1678415aff Merge branch 'improved_breakdowns' into improved_breakdowns-sx
Update feature version.
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 417f51db8a Merge branch 'improved_breakdowns' into improved_breakdowns-sx 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 6ffb9c24c5 Merge branch 'improved_breakdowns' into improved_breakdowns-sx 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
Jonathan G Rennison cc79a4d0f8 Merge branch 'improved_breakdowns' into improved_breakdowns-sx 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 1ead315e42 Merge branch 'improved_breakdowns' into improved_breakdowns-sx 9 years ago
Jonathan G Rennison 0650568aee Improved breakdowns: Fix setting string being in the middle of a string range.
Looking at or selecting the gui.stop_location setting triggered
an assertion failure.
Move the string out of the setting range.
9 years ago
Jonathan G Rennison 6d695a1426 Merge branch 'master' into improved_breakdowns 9 years ago
translators 8cfc1e9d23 (svn r27386) -Update from WebTranslator v3.0:
dutch - 3 changes by TheTycoonist
9 years ago
rubidium 3b8aabdd9e (svn r27385) -Fix: compilation failure due #define-ing enum name of a system library before including the system library 9 years ago
translators 70322bce59 (svn r27384) -Update from WebTranslator v3.0:
catalan - 35 changes by juanjo
9 years ago
rubidium 8f711aca53 (svn r27383) -Fix: win32 sound driver would not catch the exception due to constness difference 9 years ago
michi_cc f4cd0198f4 (svn r27382) -Add: [Win32] Project files for Visual Studio 2015. 9 years ago
michi_cc 44918010df (svn r27381) -Fix: Warnings due to C++11 requirements for explicit narrowing conversions in initializer lists. 9 years ago
michi_cc 0cd198c798 (svn r27380) -Fix: [Win32] Compilation with MSVC2015. 9 years ago
frosch 63aa9f4ea8 (svn r27379) -Codechange: Do not throw in the destructors of ScriptTest/ExecMode. 9 years ago
alberth 438d7a26cc (svn r27378) -Codechange: Fix indentation of the table values, allow Doxygen to link to the TextColour enum. 9 years ago
Jonathan G Rennison 15f3abf47d Fix typo in save/load ext feature enum name for improved breakdown. 9 years ago
rubidium eb4b6a08d0 (svn r27377) -Codechange: use the pkg-config files of ICU as well. Since they are split into separate libraries it becomes possible to split RTL support for natural sorting, although the effect will be minimal 9 years ago
rubidium cc5b8ea6cb (svn r27376) -Codechange: let libtimidity detection and configuration make use of pkg-config 9 years ago
rubidium 2011c24502 (svn r27375) -Fix-ish: update help parameter for png configuration (it has used pkg-config for a long time) 9 years ago
rubidium 36f77b1aa7 (svn r27374) -Codechange: make zlib detection and configuration make use of pkg-config 9 years ago
rubidium c3715a025d (svn r27373) -Codechange: make sdl detection and configuration use pkg-config 9 years ago
rubidium f05d71a9a6 (svn r27372) -Codechange: make allegro detection and configuration use pkg-config 9 years ago
rubidium f179a92007 (svn r27371) -Codechange: make freetype detection and configuration use pkg-config 9 years ago
rubidium 2aee2899e8 (svn r27370) -Codechange: move the "dedicated server" check into the pkg-config check routine 9 years ago
rubidium a08d1a044f (svn r27369) -Cleanup: there's no need to do dependency checking of libraries in OpenTTD; zlib should always be installed if libpng is because it links to zlib 9 years ago
rubidium 625bc2e0e7 (svn r27368) -Cleanup: undo the special case of OSX; it works fine without it 9 years ago
rubidium ee700fd3b1 (svn r27367) -Codechange: make a distinction between the layouting part of ICU (lx) or the sorting/collation part of ICU (i18n) 9 years ago
frosch 9f72662ecc (svn r27366) -Fix [FS#6358]: Clickareas in settings tree were misaligned when the filter warning was displayed, if the setting height was defined by the icons instead of the font. 9 years ago
frosch c9120cd714 (svn r27365) -Fix: Center settings filter warning also vertically, and also in case of multiple lines. 9 years ago
translators a9200aa69a (svn r27364) -Update from WebTranslator v3.0:
czech - 1 changes by Eskymak
dutch - 12 changes by TheTycoonist
9 years ago
alberth 894f69e1fd (svn r27363) -Codechange: Fix codestyle of one-line methods and header codestyle of derived structs. 9 years ago
alberth 48485a6a5a (svn r27362) -Codechange: Codestyle fixes for reference var declarations, static cast type, operator methods. 9 years ago
rubidium bc199a4fe1 (svn r27361) -Fix-ish: when attempting to find a host, try gcc/g++ but also CC/CXX appended to the host triple. This to make cross compilation with clang alone easier 9 years ago
rubidium 501ee2105a (svn r27360) -Feature: allow configuring pkg-config in one go for all libraries 9 years ago