Commit Graph

22258 Commits (e459ebe2ad701bbba4ab349d082ace7310c17062)
 

Author SHA1 Message Date
Jonathan G Rennison e459ebe2ad Remove assert.h include from progsig, as this overrides OpenTTD's assert 7 years ago
Jonathan G Rennison 1e9433e0ff progsig: Fix signal dependency being left dangling after cycling side.
If the target of a programmable signal dependency was cycled to the
other side, the dependency was not cleared.
As the dependency was then no longer valid, it was not cleared by the
programmable signal.
Deleting the programmable signal and then the target signal resulted
in a crash.
9 years ago
Jonathan G Rennison 769b8ae096 progsig: Fix remove and clone program functions being completely broken.
Remove function only removed instructions from the local machine, and
was therefore not MP safe.
Clone function failed to work correctly for non-trivial cases,
and sometimes caused an array out of bounds assertion.

These are replaced by a new commandproc which does each operation
as a single action, which is therefore MP safe.

Remove an unused struct field.
9 years ago
Jonathan G Rennison 8760187899 progsig: Show target coordinates in signal state conditional. 9 years ago
Jonathan G Rennison 0577d7cbf8 progsig: Fix test remove rail action clearing signal programs.
This could be triggered by using shift, using the land info window, etc.
9 years ago
Jonathan G Rennison b2b9c0a070 Progsig: Fix various issues with removing program dependencies.
Fix RemoveProgramDependencies using one parameter for both source
and target, and rename the parameters to something sensible.
Update program window when invalidating in RemoveProgramDependencies.
Make SignalStateCondition::IsSignalValid const and add CheckSignalValid
for non-const validaty checking.
9 years ago
Jonathan G Rennison 1823deae7d Programmable signals: Fix whitespace issues. 9 years ago
Jonathan G Rennison bc8818d9ac Merge branch 'progsig-rebase' into progsig-sx 9 years ago
Jonathan G Rennison b7373c3eb5 Check tile type in SignalStateCondition::IsSignalValid()
This is to avoid triggering an assertion, particularly
when clearing the program state in InitializeGame(), as the map has
just been reset, or when deleting a signal referenced by a condition.
9 years ago
Jonathan G Rennison 17b6713362 Merge branch 'progsig-rebase' into progsig-sx 9 years ago
Jonathan G Rennison 41a818cb7d Merge branch 'master' into progsig-rebase 9 years ago
Jonathan G Rennison ad4f4525f3 Fix programmable signal programs not being cleared in InitializeGame.
This could leave dangling signal programs in subsequent games
which can cause crashes during saving.
9 years ago
translators 12b35b301c (svn r27403) -Update from WebTranslator v3.0:
polish - 7 changes by McZapkie
9 years ago
translators 0d0b15875f (svn r27402) -Update from WebTranslator v3.0:
korean - 1 changes by telk5093
9 years ago
translators 67b605337f (svn r27401) -Update from WebTranslator v3.0:
frisian - 2 changes by BAJansen
norwegian_bokmal - 8 changes by hafting
welsh - 4 changes by kazzie
9 years ago
rubidium e8788019fa (svn r27400) -Fix [FS#6368] (r26449): when a dedicated server was paused with no clients the tick length was increased significantly, making any assumptions about the tick length used further down in the code are not true anymore. One of such assumptions was that one should readvertise every 15 minutes worth of original ticks, but due to the lengthening this timeframe would be more like 45-60 minutes. Now we'll take the operating system's millisecond counter instead 9 years ago
planetmaker e4c3db0c6a (svn r27399) -Fix: [Makefile] game script directory and compat*.nut were never installed on *nix 9 years ago
translators 65f8b1c95e (svn r27398) -Update from WebTranslator v3.0:
simplified_chinese - 1 changes by xiangyigao
9 years ago
alberth 65db59da81 (svn r27397) -Fix(r27346)[FS#6370]: Fix object editing crash in scenario editor (based on work by adf88) 9 years ago
translators a5355ec6c4 (svn r27396) -Update from WebTranslator v3.0:
latin - 17 changes by Supercheese
9 years ago
translators 081da61d05 (svn r27395) -Update from WebTranslator v3.0:
frisian - 14 changes by BAJansen
9 years ago
translators 54eb340998 (svn r27394) -Update from WebTranslator v3.0:
frisian - 25 changes by BAJansen
9 years ago
translators 246df66229 (svn r27391) -Update from WebTranslator v3.0:
english_US - 2 changes by Supercheese
9 years ago
translators ee8bee5e31 (svn r27390) -Update from WebTranslator v3.0:
korean - 1 changes by telk5093
9 years ago
frosch 8c389a2a96 (svn r27389) -Fix: There are two different availability conditions for fdatasync in the manpage. Use them both, since at least on some MinGW versions one is not enough. 9 years ago
translators 8f36c49ffa (svn r27388) -Update from WebTranslator v3.0:
dutch - 4 changes by TheTycoonist
9 years ago
translators 284c9dd342 (svn r27387) -Update from WebTranslator v3.0:
dutch - 2 changes by TheTycoonist
9 years ago
Jonathan G Rennison 0693d3678a Progsig: Fix some benign compiler warnings and whitespace issues. 9 years ago
Jonathan G Rennison 9283ae38df Merge branch 'save_ext' into progsig-sx 9 years ago
Jonathan G Rennison a8cc81d054 Initialiser list fixes for legacy compilers. 9 years ago
Jonathan G Rennison ef5ecdb2c7 Merge branch 'git_findversion_fix' into save_ext 9 years ago
Jonathan G Rennison 01482ba6b4 Fix findversion.sh using descendant instead of ancestor tags for the version string. 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
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