Commit Graph

36959 Commits

Author SHA1 Message Date
Patric Stout
4e12aac9c0 Codechange: to create or not to create a folder, that is the question
This was just weird. With XDG _personal_dir was created already,
but later on it was checked if it was different from config_dir,
and the creation was skipped. All this checking and validation
makes my head spin .. let's make it a bit more simple.
2020-12-13 16:40:56 +01:00
Patric Stout
c66bd18a10 Add: save openttd.cfg immediately on changing a setting (#8358)
Formally it was only done on exit. This means that if it crashes
changes in settings were not stored. This is often rather
frustrating. Additionally, targets (like emscripten) where people
are unlike to use "Exit Game", will never see their configuration
stored.

The drawback is that on every setting change there is some minor
I/O of writing the ini file to disk again.
2020-12-13 16:28:06 +01:00
Yourself
cbaceb62d2 Fix: overflow in CloneVehicleName 2020-12-12 14:37:17 -08:00
translators
40edc2863c Update: Translations from eints
finnish: 1 change by hpiirai
2020-12-12 17:52:42 +00:00
glx22
6fae0b83d9 Add: [CMake] targets to generate documentation 2020-12-12 15:48:04 +01:00
translators
7f5afbfdf5 Update: Translations from eints
slovak: 2 changes by FuryPapaya
2020-12-10 17:53:08 +00:00
Jonathan G Rennison
6ecf232edd Fix rendering artefacts in colour news window viewports
Off by one error in applying dimming recolour created
doubly-dimmed lines on dirty block redrawing boundaries.
2020-12-09 22:56:49 +00:00
translators
20151e41ea Update: Translations from eints
korean: 1 change by telk5093
french: 1 change by glx22
2020-12-09 17:50:24 +00:00
translators
819ce1bf49 Update: Translations from eints
slovak: 30 changes by FuryPapaya
lithuanian: 37 changes by devastatorius
2020-12-09 13:42:08 +00:00
Owen Rudge
535e18b54e Change: Don't display OS name when the user is exiting the game 2020-12-09 09:21:34 +00:00
Patric Stout
2864d019f0 Fix: useless warning with -snull and no BaseSounds available (#8361)
If I explicitly tell the system I do not want sound, I still get
presented a nice message I do not have any BaseSounds available
on my system, and that I should download one to enjoy sound. Well,
let me tell you, with "-snull" that is really really not going to
help. So please, be quiet, and let me enjoy the game without
"boooooo" and "DING DING DING".

Thank you.
2020-12-08 10:24:59 +01:00
Jonathan G Rennison
840e459601 Revert "Fix 63ccb36ef3: Crash trying to load TTO/TTD savegames. (#8356)"
This is not necessary due to 5243cfd6d0.

This reverts commit c558936ec3.
2020-12-07 18:19:54 +00:00
Jonathan G Rennison
4436da7436 Saveload: Skip GetVariableAddress asserts if _DEBUG not defined 2020-12-07 18:12:33 +00:00
Jonathan G Rennison
4da3cfcf56 Merge branch 'master' into jgrpp
# Conflicts:
#	CMakeLists.txt
#	src/bootstrap_gui.cpp
2020-12-07 17:56:44 +00:00
Patric Stout
dddf885fb4 Remove: console command "content select all" (#8363)
The intention of this function was that you could download
everything after a filter was applied; but this never really
took off. Instead, a select few people used this functionality
to download every available package on BaNaNaS. This is not in
the spirit of this service. Additionally, these few people were
good for 70% of the consumed bandwidth of BaNaNaS.
2020-12-07 14:48:13 +01:00
frosch
6198a4776b Change: [NewGRF] Use aircraft property 12 also for helicopters.
Due to keeping compatibility we can only do this for NewGRF-defined sound effects.
2020-12-06 20:31:54 +01:00
Charles Pigott
cfa1b1e006 Fix: Compile warnings when asserts are disabled 2020-12-06 19:27:39 +00:00
Patric Stout
731af1f1f3 Codechange: don't do work GetVariableAddress() is already doing 2020-12-06 16:10:58 +01:00
Patric Stout
c98717cb45 Fix: do not add an offset to a nullptr
This is, by specs, undefined behaviour. See
https://reviews.llvm.org/D67122

In cases where this is done, optimizations done by LLVM can
generate code that causes crashes.

GetVariableAddress() had two (legit) ways this could happen:
- For SaveLoad set to global
- For SaveLoad set to SLE_VAR_NULL, where sld->address is always
  a nullptr, and object could or could not be a nullptr.
2020-12-06 16:10:58 +01:00
Michael Lutz
c558936ec3 Fix 63ccb36ef3: Crash trying to load TTO/TTD savegames. (#8356) 2020-12-06 00:29:27 +01:00
Patric Stout
6ad3cca4ca Fix a49fdb7ebb: bootstrap crash when trying to load new baseset (#8353)
Using nullptr as "name" crashes on "name.empty()". Use an empty
string instead.
2020-12-05 15:03:16 +01:00
glx22
a06fe8e8a7 Fix: [CMake] cross-compiling requires native tools 2020-12-04 09:49:31 +00:00
Jonathan G Rennison
933d75f532 Clear unused train cache fields, fixes warning spam on MP client load 2020-12-03 17:39:15 +00:00
Rasmus Jonsson
0b2dd2c5cd Fix: [NoAI] don't notify caught exceptions 2020-12-02 17:11:36 +00:00
Jonathan G Rennison
3e1ab88323 Fix NRT road/tram type conversion on savegame load from JokerPP v1.27 2020-12-01 21:10:49 +00:00
Jonathan G Rennison
141e52658b Debug: Add road types to RV debug window 2020-12-01 20:23:13 +00:00
Jonathan G Rennison
530a3a2f4d Fix assert fail when using restart command after opening save/load GUI 2020-11-30 19:20:11 +00:00
TELK
9618b96cd7 Update: Korean translation for v0.39.1 2020-11-29 23:43:51 +09:00
translators
d19f7b94fb Update: Translations from eints
norwegian (bokmal): 8 changes by buzzCraft
lithuanian: 5 changes by devastatorius
2020-11-28 17:51:55 +00:00
Jonathan G Rennison
55fae045b1 Merge branch 'master' into jgrpp 2020-11-28 11:23:35 +00:00
Jonathan G Rennison
270a748b64 Tracerestrict: Add time/date conditional 2020-11-27 18:43:32 +00:00
Jonathan G Rennison
ec339b1dfa Tracerestrict: Make condition type dropdown variable width 2020-11-27 17:44:14 +00:00
Charles Pigott
b8ec88f6af Codechange: Suppress compiler warning about signed/unsigned printf values 2020-11-26 19:06:03 +00:00
translators
6ef1eaf1f5 Update: Translations from eints
norwegian (bokmal): 9 changes by buzzCraft
2020-11-26 17:51:49 +00:00
Jonathan G Rennison
2ad446369d Cache animated tile speed, use btree map for animated tiles 2020-11-26 00:19:51 +00:00
translators
821592ddeb Update: Translations from eints
norwegian (bokmal): 10 changes by buzzCraft
2020-11-25 17:51:48 +00:00
Jonathan G Rennison
72a7ae25e8 Tracerestrict: Fix program execution when skipping double non-conditional 2020-11-25 01:38:01 +00:00
Jonathan G Rennison
320a8da283 Show tile animation info in debug window 2020-11-24 18:29:50 +00:00
Jonathan G Rennison
a20112e48f Add console command to dump desync message log 2020-11-22 11:49:18 +00:00
Jonathan G Rennison
1f54c8a018 Send vehicle caches to network clients to prevent desyncs due to bad GRFs 2020-11-22 11:41:50 +00:00
Jonathan G Rennison
4ba11fa822 CheckCaches: Log incorrect aircraft cache fields 2020-11-22 11:40:08 +00:00
Jonathan G Rennison
223598bd06 CheckCaches: Log incorrect train/GV cache fields 2020-11-21 20:47:00 +00:00
Jonathan G Rennison
9efeb3551a Tunnel/bridge signal simulation spacing is now a company setting 2020-11-21 17:43:55 +00:00
Jonathan G Rennison
ffbb4622ad Make sure that CmdBuildSingleRail failure cannot modify tile rail types 2020-11-21 16:49:41 +00:00
Jonathan G Rennison
f5499852b6 Add debug console command to change rail type map colour 2020-11-21 16:48:20 +00:00
Jonathan G Rennison
39b7dc7b2a Use aux command log for sign commands 2020-11-21 12:51:22 +00:00
Jonathan G Rennison
c4b09e4780 Fix map-mode viewports not updating when changing company and land colours 2020-11-20 17:47:12 +00:00
Jonathan G Rennison
e6edcaf333 Use VCF_IMAGE_REFRESH_NEXT for ground vehicle VCF_REDRAW_ON_SPEED_CHANGE 2020-11-16 17:40:09 +00:00
Jonathan G Rennison
3dd52c6198 Fix scrollbar functionality in schedule dispatch window 2020-11-15 09:37:11 +00:00
translators
92236ccd2f Update: Translations from eints
indonesian: 117 changes by dimaspaf14
2020-11-12 17:51:47 +00:00