Commit Graph

17961 Commits (c1fddb9a6ae5c3af6865461a7295788a341011a2)

Author SHA1 Message Date
glx22 d1fa6b129c Add: [CMake] Option to only build tools/docs 4 years ago
Patric Stout b7851e51ad Fix: set SP_WORKING_DIR earlier with '-c'
On Windows, relative folders don't work so well. So we need to
lookup the full path. This is best done in DetermineBasePaths()
and as a bonus that only sets SP_WORKING_DIR once.
4 years ago
Patric Stout 5d0331ecdc
Fix 8bef06a2: don't use "extern" when you want to implement a global (#8373) 4 years ago
Patric Stout da7c74ba7e Fix: change the working-dir searchpath when using '-c'
Basically, with '-c' you now create a sandbox. It will still use
your personal-dir and global-dir to find files you installed there,
but all new files are stored with a base folder identical to the
folder the configuration is in.

This is a bit of an old bug, that we many have tried to solve in
various of different ways. The code has grown sufficiently complex
that it is hard to see what consequences of actions are. This is
in my opinion the most harmless solution, while increasing the
usefulness of the '-c' flag.

In essence, the problem was that empty folders were always created
in the directory where the configuration was, but as that directory
wasn't added to any searchpath, files weren't stored there, unless
by accident it was a folder already on the searchpath. For example,
if you do './openttd -c local.cfg', it did work as expected. But
in the more generic variant, it did not.

With this patch, you can run './openttd -c /new/folder/local.cfg',
and it will create and prepare that folder to receive new files.

'content_download' is also stored in the directory the
configuration is in; this was already the case. Important to
note that there is only one search-path for 'content_download'.
In other words, when using '-c', it will not look in '~/.openttd'
inside the 'content_download' folder.
4 years ago
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.
4 years ago
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.
4 years ago
translators 40edc2863c Update: Translations from eints
finnish: 1 change by hpiirai
4 years ago
glx22 6fae0b83d9 Add: [CMake] targets to generate documentation 4 years ago
translators 7f5afbfdf5 Update: Translations from eints
slovak: 2 changes by FuryPapaya
4 years ago
translators 20151e41ea Update: Translations from eints
korean: 1 change by telk5093
french: 1 change by glx22
4 years ago
translators 819ce1bf49 Update: Translations from eints
slovak: 30 changes by FuryPapaya
lithuanian: 37 changes by devastatorius
4 years ago
Owen Rudge 535e18b54e Change: Don't display OS name when the user is exiting the game 4 years ago
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.
4 years ago
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.
4 years ago
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.
4 years ago
Charles Pigott cfa1b1e006 Fix: Compile warnings when asserts are disabled 4 years ago
Patric Stout 731af1f1f3 Codechange: don't do work GetVariableAddress() is already doing 4 years ago
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.
4 years ago
Michael Lutz c558936ec3
Fix 63ccb36ef3: Crash trying to load TTO/TTD savegames. (#8356) 4 years ago
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.
4 years ago
glx22 a06fe8e8a7 Fix: [CMake] cross-compiling requires native tools 4 years ago
Rasmus Jonsson 0b2dd2c5cd Fix: [NoAI] don't notify caught exceptions 4 years ago
translators d19f7b94fb Update: Translations from eints
norwegian (bokmal): 8 changes by buzzCraft
lithuanian: 5 changes by devastatorius
4 years ago
Charles Pigott b8ec88f6af Codechange: Suppress compiler warning about signed/unsigned printf values 4 years ago
translators 6ef1eaf1f5 Update: Translations from eints
norwegian (bokmal): 9 changes by buzzCraft
4 years ago
translators 821592ddeb Update: Translations from eints
norwegian (bokmal): 10 changes by buzzCraft
4 years ago
translators 92236ccd2f Update: Translations from eints
indonesian: 117 changes by dimaspaf14
4 years ago
translators 8e4a3a0e76 Update: Translations from eints
danish: 1 change by achton
4 years ago
translators 79f00277c4 Update: Translations from eints
slovak: 16 changes by FuryPapaya
4 years ago
translators 4dc986f32d Update: Translations from eints
slovak: 19 changes by FuryPapaya
4 years ago
translators 918857e03b Update: Translations from eints
korean: 1 change by telk5093
slovak: 86 changes by FuryPapaya
4 years ago
translators f23a7a59b6 Update: Translations from eints
slovak: 26 changes by FuryPapaya
polish: 1 change by yazalo
4 years ago
translators 9bd2e5bf49 Update: Translations from eints
slovak: 86 changes by FuryPapaya
polish: 57 changes by yazalo
4 years ago
Lars Wendler cf29d23ba4 Fix: build with icu-68.1
icu-68.1 removed public macro definitions for TRUE and FALSE

Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
4 years ago
translators 421304c850 Update: Translations from eints
afrikaans: 3 changes by Gwenney
4 years ago
translators 4797e095d9 Update: Translations from eints
hungarian: 1 change by andrejmoltok
portuguese (brazilian): 64 changes by JuniuSeifero
4 years ago
translators a441973d17 Update: Translations from eints
romanian: 1 change by ALEX11BR
4 years ago
translators 59ae40af53 Update: Translations from eints
vietnamese: 24 changes by KhoiCanDev
4 years ago
translators 97d7c0a8e1 Update: Translations from eints
tamil: 76 changes by Aswn
4 years ago
translators eb01f2e08d Update: Translations from eints
romanian: 10 changes by ALEX11BR
tamil: 26 changes by Aswn
4 years ago
translators d9e7e8cec0 Update: Translations from eints
german: 17 changes by Luensche
4 years ago
translators b3362c526a Update: Translations from eints
german: 5 changes by Luensche
4 years ago
translators 5043f6feff Update: Translations from eints
slovak: 16 changes by FuryPapaya
4 years ago
translators b99fec1e4d Update: Translations from eints
slovak: 29 changes by FuryPapaya
polish: 7 changes by yazalo
4 years ago
translators 313141d2f1 Update: Translations from eints
slovak: 33 changes by FuryPapaya
4 years ago
translators 86ec74347d Update: Translations from eints
german: 4 changes by matthiasradde
slovak: 23 changes by FuryPapaya
4 years ago
translators dcdcf6d57c Update: Translations from eints
slovak: 57 changes by FuryPapaya
tamil: 1 change by Ramesh78dev
4 years ago
translators b607f54462 Update: Translations from eints
slovak: 35 changes by FuryPapaya
tamil: 1 change by Ramesh78dev
4 years ago
FuryPapaya f1ab41e337
Fix: Slovak ownname was using the wrong form (#8326)
Noun vs Adjective
4 years ago
translators 50417ab0c5 Update: Translations from eints
slovak: 131 changes by FuryPapaya
4 years ago
translators 6e53bf00c4 Update: Translations from eints
slovak: 56 changes by FuryPapaya
4 years ago
translators a36a1b5ff5 Update: Translations from eints
slovak: 193 changes by FuryPapaya
spanish: 46 changes by MontyMontana
4 years ago
translators e01143edf8 Update: Translations from eints
italian: 1 change by AlphaJack
romanian: 13 changes by ALEX11BR
finnish: 6 changes by VeeraKoo
slovak: 202 changes by FuryPapaya
spanish: 240 changes by MontyMontana
4 years ago
translators 3723207d64 Update: Translations from eints
slovak: 23 changes by FuryPapaya
turkish: 66 changes by ozcanakdora
4 years ago
translators 80f7937e42 Update: Translations from eints
korean: 8 changes by telk5093
4 years ago
translators 53f36f4afa Update: Translations from eints
czech: 1 change by LubosKolouch
german: 18 changes by matthiasradde
4 years ago
translators bdaf596373 Update: Translations from eints
german: 1 change by matthiasradde
polish: 17 changes by yazalo
4 years ago
translators d9b0e6c550 Update: Translations from eints
romanian: 7 changes by ALEX11BR
portuguese (brazilian): 44 changes by Lucas559-noob
4 years ago
translators 5584bf6bbb Update: Translations from eints
portuguese (brazilian): 22 changes by Lucas559-noob
polish: 6 changes by pAter-exe
4 years ago
translators 4279620aef Update: Translations from eints
turkish: 28 changes by nullaf
dutch: 1 change by rcpaul
4 years ago
translators d58531ec84 Update: Translations from eints
german: 1 change by frosch123
4 years ago
Galigator 933d02dce2 Change: Service depot also reset breakdown chance. 4 years ago
stormcone 49b75d67bd
Fix 70f9c3c6: The *_filter_criteria variables contain an index, not a cargo. (#8320) 4 years ago
Charles Pigott 348c231e12 Codechange: Make codestyle for CMake files consistent for 'control' statements 4 years ago
frosch df5362a008 Fix #8311, b98c7763de4: Industry probability at map generation was scaled differently when set via property or callback. 4 years ago
dP 0110fa12da Feature: Make news and errors close hotkeys configurable 4 years ago
Berbe 8f3d1ec970 Feature: Improve restart command
When the restart command is issued, a normal map is always spawned.

This improvement takes into account the current state of _file_to_saveload to check if a savegame/scenario/heightmap was previously loaded, and loads the same resource again.
4 years ago
dP 3ad4a6e3da Fix 380fd8c: Only check houses for cargo when generating subsidies with towns 4 years ago
translators beaa7c7894 Update: Translations from eints
korean: 1 change by telk5093
4 years ago
translators 53a3d940b1 Update: Translations from eints
ukrainian: 11 changes by Strategy
4 years ago
dP ab420d8cc0 Change: Use key names instead of characters in hotkey.cfg 4 years ago
translators dacec76c1b Update: Translations from eints
catalan: 57 changes by juanjo
4 years ago
translators 9340fe9c7c Update: Translations from eints
ukrainian: 18 changes by Strategy
4 years ago
dP 3db7cf54fd Fix: sprite preview in sprite aligner is too small with scaled UI 4 years ago
translators 2693a901f9 Update: Translations from eints
swedish: 1 change by Joel_A
4 years ago
Niels Martin Hansen 84efde8ee3 Change: Log when rejecting a TAR archive for extraction
Based on report in <https://www.tt-forums.net/viewtopic.php?f=31&t=87374>
4 years ago
Łukasz Hryniuk 3effad0bea
Fix: Properly invalidate mouse-over station coverage highlight (#8263) 4 years ago
dP 452e1e3328 Codechange #8258: Remove unused town cargo caches from the savegame 4 years ago
TechGeekNZ a10013dd00 Codechange: Spell 'Viewport' consistently
Some places in the codebase misspell 'Viewport' as 'ViewPort' or 'view_port'.
This patch makes everything consistent.
4 years ago
TechGeekNZ c0bf7cc840 Fix: GCC warns about possibly uninitialized data in signal.cpp
When compiling with '-Og', GCC warns about variables that are
initialized by reference in the condition of a 'while' loop.

This commit silences the warning by explicitly initializing the
variables in question to their respective 'invalid value' markers,
which will most likely be optimized out when the compiler realizes
the values are never used.
4 years ago
translators a56bf35409 Update: Translations from eints
french: 1 change by glx
4 years ago
translators 82672342b7 Update: Translations from eints
belarusian: 35 changes by KorneySan
4 years ago
translators 663c301e7c Update: Translations from eints
belarusian: 64 changes by KorneySan
russian: 2 changes by KorneySan
4 years ago
translators 808fbaa767 Update: Translations from eints
belarusian: 11 changes by KorneySan
4 years ago
glx 4079c47b6c Change: rewrote squirrel_export in CMake 4 years ago
glx 8794c61f25 Change: rewrote generate_widget in CMake 4 years ago
Pavel Stupnikov 26b91192a3
Feature: Center text and icons in the status bar vertically (#8273) 4 years ago
dP 706c47265e Fix: Set invalid road and tram types for rail tunnel ends 4 years ago
translators 954d0b4e5b Update: Translations from eints
korean: 1 change by telk5093
4 years ago
Abdurrahmaan Iqbal 7d2db99bfd Fix #7772: Show destination on mouseover when vehicle stopped (and not in depot) 4 years ago
TrevorShelton c39d62c245 Update: Disuse of STR_ERROR_INCOMPATIBLE_ROAD 4 years ago
TrevorShelton c7e391da93 Change #8162: Conversion of Town Road, Impr. Error
This changes the error when you attempt to convert a road owned by a town to another road, specifying that it's owned by the town rather than simply being incompatible. As the original poster of the issue pointed out, these seemed to be the only occurences of the incompatible road string, so now it's unused, but they would be left untouched in case of future use or since changing it to a different error would do the work of removing it then. If requested, it likely wouldn't be too difficult to remove the string entirely.
4 years ago
Jonathan G Rennison 053d4f3bff Fix: Thread unsafe use of SendPacket for PACKET_SERVER_MAP_SIZE
NetworkTCPSocketHandler::SendPacket is not thread safe and may not
be used concurrently from multiple threads without suitable locking
4 years ago
TechGeekNZ 716c883737 Fix: Globally apply preprocessor directive coding style
Global; except for the 32-bit SSE blitter, which has some #DEFINEs
in not-very-nice places.
4 years ago
stormcone 816fada2b1
Fix #8250: [NRT] Company infrastructure window always omits last road/tramtype 4 years ago
translators 94d5fcab4b Update: Translations from eints
czech: 3 changes by djst
4 years ago
dP 7045186594 Change #8159: Remove now unused town cargo caches without bumping the savegame version 4 years ago
dP 380fd8cab4 Fix: Make subsidies scan tiles for town acceptance and production instead of using desync-prone town caches 4 years ago
dP ca2604c4e2 Revert #8157: Redundant change 4 years ago
Michael Lutz 6d3c2edc59 Add: [NewGRF] Industry behaviour flag to override second cargo production clamping for water industries when using smooth economy.
Smooth economy is only used when the corresponding setting is enabled and the industries does not use the production callback.
4 years ago
Jonathan G Rennison 7a09413a1a Fix: Incorrect save/load array size of Town::cargo_accepted
In 11ab3c4e the number of cargo types was changed from 32 to 64.
The save/load of Town::cargo_accepted was not updated, such that
only half of the data structure is saved/loaded in savegame versions
199 to 218.
Discard and regenerate data from all savegame versions prior to 219.
4 years ago
Jonathan G Rennison 54237b0e98 Codechange: Move SlSkipBytes to saveload.h 4 years ago
ilayaraja97 cf8ccf4b08 Fix #8131: small bridges also have pillars drawn 4 years ago
TrevorShelton a4a9908a51
Fix #8221: Missing specific error message for bridge too long (#8240) 4 years ago
Charles Pigott 218db00c4c Fix #8216: Don't show floating text on autoreplace if cost is 0 4 years ago
duck 1bc7047af7
Doc: Acknowledge integer type mismatch in certain admin packets using AdminUpdateType (#8238) 4 years ago
Charles Pigott 75a2ae2f48 Change: Also make roadside trees match the tree transparency option 4 years ago
Charles Pigott 4c45448fa9 Fix #8129: Crash if a news message expires while viewing the endgame screen 4 years ago
Charles Pigott dc8d0089e9 Codechange: Make sure script enums are the same size as their normal counterparts 4 years ago
Charles Pigott e5f931ef42 Fix: Warning about using the wrong enum type 4 years ago
Charles Pigott 64b1c70fdd Codechange: Add WARN_FORMAT to vseprintf and fix the cascade of warnings that followed 4 years ago
Charles Pigott 224acb78b0 Fix: Compiler warnings about memsetting non-trivial classes 4 years ago
Abdurrahmaan Iqbal 8a655c7fb6 Fix #8232: 'Huge screenshot' warning being shown incorrectly 4 years ago
TechGeekNZ 3c8d0aa354 Cleanup: Give `TakeScreenshot` a more sensible name 4 years ago
TechGeekNZ ed6f31f601 Cleanup: Remove redundant implementation of TakeScreenshot 4 years ago
dP a2e1102b15 Feature: Increase max possible distance from border for oil refineries and rigs 4 years ago
translators b84d61ef6e Update: Translations from eints
indonesian: 16 changes by adjayanto
4 years ago
translators 78b6587c40 Update: Translations from eints
swedish: 3 changes by Joel_A
4 years ago
translators 6d135d4b01 Update: Translations from eints
ukrainian: 1 change by nsergiy
korean: 1 change by telk5093
4 years ago
glx22 87a069c887
Fix #8230: Resolve ".." when opening files in .tar (#8231) 4 years ago
Jonathan G Rennison e6f3e15c32 Fix 63ccb36e: Incorrect string type for OrderBackup::name save/load
In 63ccb36e BaseConsist::name was changed from a malloced char*
to a std::string.
OrderBackup inherits from BaseConsist.
The saveload of OrderBackup::name was not updated.
4 years ago
Jonathan G Rennison 1ac0d4a5b2 Fix: Thread unsafe use of NetworkAddress::GetAddressAsString
Remove static buffer form of NetworkAddress::GetAddressAsString.
This is used in multiple threads concurrently, and is not thread-safe.

Replace it with a form returning std::string.
4 years ago
translators 9aca6ff971 Update: Translations from eints
swedish: 33 changes by Joel_A
4 years ago
Jonathan G Rennison b0f192abc4 Fix: Racy use of flags in TCPConnecter::CheckCallbacks
conected and aborted flags are used concurrently from multiple threads.
4 years ago
Jonathan G Rennison c167648d75 Fix: Violation of strict weak ordering in group name sorters
This could be caused by a group being renamed, and the old
name being cached from a previous sort.

See: #7838
4 years ago
Jonathan G Rennison d830a34394 Fix: Violation of strict weak ordering in engine name sorter
This could be caused by an engine being renamed, and the old
name being cached from a previous sort.

See: #7838
4 years ago
Jonathan G Rennison 084b073e57 Codechange: Use template type for GUIList::Sort comparator 4 years ago
frosch d8182b7e15 Change: Allow command cost-estimation while paused. 4 years ago
Niels Martin Hansen 9895ced6af Fix: Silence some warnings when building with clang-cl on VS 2019
Clang-cl presents as both _MSC_VER and __clang__ in the preprocessor which makes some things confusing.
4 years ago
nikolas c9aff698d0
Fix #8104: Always add WINDOW_RESIZABLE flag to SDL2 (#8211)
This fixes a bug that can reproduced with these steps:
* Start openttd in fullscreen mode
* Turn off fullscreen mode
* Try to resize the window. The window can't be resized.
4 years ago
translators 208614343f Update: Translations from eints
polish: 1 change by MaksOPENTTD1
danish: 1 change by beruic
4 years ago
TechGeekNZ ee570e1b6d Cleanup: Fix typos in code comments. 4 years ago
TechGeekNZ 8652a4db76 Cleanup: Give `SetDirtyBlocks` a more descriptive name. 4 years ago
arikover caab095e4e Fix: [CMake] SDL2 Sound was not included 4 years ago
Miguel Horta 40436019fd Fix: Display banlist's indexes correctly
Bug introduced via commit ab711e6942
4 years ago
TechGeekNZ fe1925931d Cleanup: Correct typographic errors in code comments. 4 years ago
TechGeekNZ 3d8597d42e Cleanup: Add undocumented parameter to GetSpriteSize. 4 years ago
Patric Stout 4d04009d12 Codechange: remove #ifdef from .cpp files to exclude features
With CMake, these files are simply not compiled to start with.
4 years ago
Patric Stout 56d54cf60e Add: introduce CMake for project management
CMake works on all our supported platforms, like MSVC, Mingw, GCC,
Clang, and many more. It allows for a single way of doing things,
so no longer we need shell scripts and vbs scripts to work on all
our supported platforms.

Additionally, CMake allows to generate project files for like MSVC,
KDevelop, etc.

This heavily reduces the lines of code we need to support multiple
platforms from a project perspective.

Addtiionally, this heavily improves our detection of libraries, etc.
4 years ago
Marcus Calhoun-Lopez eeed3a7613 Fix: unbreak building with ICU on macOS
A symbol clash breaks building ICU on macOS, and although it isn't
necessary, it might as well be possible.
4 years ago
TechGeekNZ 937b366546 Cleanup: StationCargoList::AreMergable doxygen comment references Vehicle instead of Station. 4 years ago
TechGeekNZ 012fea301d Cleanup: Add note explaining how settings.h is generated from source. 4 years ago
TechGeekNZ f246f8faef Cleanup: Fix typo in settings.h.preamble. 4 years ago
TechGeekNZ cdd2892c49 Codechange: Realign SDL driver with SDL2 driver to ease maintenance and emphasise differences. 4 years ago
Yexo 1507902d00 Codechange: remove has_newindustries global 4 years ago
Yexo ce618bf7e9 Codechange: replace custom timer and OnGameTick() with OnHundrethTick() 4 years ago
Yexo a82572d0f5 Codechange: remove has_newhouses global 4 years ago
Michael Lutz 1c0ba07c3c Add: [Script] Native priority queue; useful e.g. for pathfinders. 4 years ago
Niels Martin Hansen 764497206a Fix #8066: Try another fallback colourspace if first one fails 4 years ago
glx b3ddf2c907 Fix: [Win32] Crash message not fitting in crash dialog 4 years ago
glx b5ca2161d9 Fix #7970: [Win32] Disable event loop on crash to prevent recursive faults 4 years ago
Yexo f827bc8c1a Fix #8166: don't crash on loading an invalid roadtype newgrf
Initialization code for GRFFile::roadtype_map was copied from
railtype_map. But while RailType is a byte-sized enum and could thus
be initialized via memset, RoadType doesn't have a defined size.
4 years ago
Yexo a9b3312d1a Fix #8024: make online content gui more responsive while loading
Previously the internal content list was invalidated and sorted for
every new item added. Now the sorting is delayed until the GUI is
drawn, which means we only sort once per GUI tick.

Since the amount of incoming items per GUI tick is not controlled by
the GUI but rather by network speed, we were previously doing a lot
of duplicate work per tick, causing the mouse cursor to lag while
the list was initialized.
4 years ago
translators 281d93f600 Update: Translations from eints
croatian: 1 change by VoyagerOne
4 years ago
TechGeekNZ 16e5f610f7 Cleanup: Correct typographic errors in code comments. 4 years ago
Jonathan G Rennison f11cd8f2d0 Fix: Compilation warnings in story_gui and script_story_page
See: #7896
4 years ago
translators 71e9c2a71b Update: Translations from eints
chinese (traditional): 2 changes by ww9980
chinese (simplified): 1 change by ww9980
4 years ago
Niels Martin Hansen 800ade7702
Feature: Push-buttons on storybook pages (#7896)
Allow more direct player-initiated interaction for Game Scripts, by letting the GS put push-buttons on storybook pages. These buttons can either trigger an immediate event, or require the player to first select a tile on the map, or a vehicle.

Additionally this reworks how the storybook pages are layouted and rendered, to allow for slightly more complex layouts, and maybe speeding drawing up a bit.
4 years ago
Michael Lutz c972a63c8c Codechange: Store info about the dedicated server log file in globals with automatic destruction to simplify control flow in openttd_main. 4 years ago
Michael Lutz 37bc2f8064 Codechange: Use std::string in the driver and blitter selection code. 4 years ago
Michael Lutz a49fdb7ebb Codechange: Store base set related texts in std::strings. 4 years ago
Michael Lutz 715aa67a9c Codechange: Use std::string in INI file parsing. 4 years ago
Michael Lutz 8aef14386f Add: Optional implementation of std::optional for pre-C++17 compilers.
Sourced from https://github.com/akrzemi1/Optional, Boost Software License, Version 1.0.
4 years ago
Michael Lutz 63ccb36ef3 Codechange: Use std::string for most of the user-settable custom names. 4 years ago
Michael Lutz 9b6f5e3bb8 Codechange: Store GS lang texts in std::strings. 4 years ago
Michael Lutz 9c2e47d03c Codechange: Use std::string for storing GRF error messages. 4 years ago
Michael Lutz c082f570ce Codechange: Use std::string when translating TTDP NewGRF string codes. 4 years ago
Michael Lutz 808c8198d5 Codechange: Consistently use WChar when passing characters around, and also define it as char32_t. 4 years ago
Michael Lutz 43cd892e0c Codechange: Replace custom linked list for GRF texts with STL vectors and strings. 4 years ago
Michael Lutz f2b40f40aa Codechange: Replace SmallPair with std::pair.
std::pair is already the smallest possible pair, and it already handles non-POD types correctly.
4 years ago
translators 7309bdec48 Update: Translations from eints
latvian: 9 changes by Tranzistors
4 years ago
dP 82572754dd Fix: Trees disappear completely after a few years when they're not allowed to spread 4 years ago
Yexo 587d8e716b
Fix #8155: Roadtype speed limit in toolbar dropdown in scenario editor was doubled 4 years ago
translators b8a896d52c Update: Translations from eints
latvian: 35 changes by Tranzistors
4 years ago
dP 93d1d8773f Fix: Desync after house replacement 4 years ago
translators d11bae58a0 Update: Translations from eints
spanish (mexican): 7 changes by Absay
4 years ago
translators 70ccd34fa0 Update: Translations from eints
latvian: 13 changes by Tranzistors
4 years ago
translators edc7ee2cda Update: Translations from eints
indonesian: 1 change by fanioz
dutch: 1 change by JanWillem
latvian: 39 changes by Tranzistors
spanish (mexican): 1 change by Absay
4 years ago
translators 9b8d5ea074 Update: Translations from eints
spanish (mexican): 16 changes by Absay
russian: 3 changes by Lone_Wolf
4 years ago
translators 83cd040c61 Update: Translations from eints
latvian: 21 changes by Tranzistors
korean: 5 changes by telk5093
4 years ago
dP f2a9a1e2a5 Fix #8137: New clients can't join (desync) after funding an industry 4 years ago
dP 7bd52970a1 Codechange: Refactor FindStationsAroundTiles to avoid code duplication 4 years ago
translators 6dcc99edab Update: Translations from eints
latvian: 45 changes by Tranzistors
spanish (mexican): 9 changes by Absay
4 years ago
glx22 cca613e3b8
Fix #8142, 5aa6351: Buoy owner and tile owner can be different (#8143) 4 years ago
glx22 d15c7dbdeb
Add: stations_near and industries_near cache check (#8139) 4 years ago
translators 48c61c1da1 Update: Translations from eints
latvian: 54 changes by Tranzistors
spanish (mexican): 4 changes by Absay
4 years ago
Ilayaraja 48d2eb703c
Add: INR currency (#8136)
Co-authored-by: ilayarja97 <ilayarja97@gmail.com>
4 years ago
glx 39092ee13b Fix #8119: Update docking area when clearing a shore rail tile 4 years ago
glx 5aa6351042 Fix #8132: Corrupted savegame crashing OpenTTD on load 4 years ago
glx 0ed00ae111 Fix: Stop any gamelog action when recovering from SlError() 4 years ago
translators 3ba34a72aa Update: Translations from eints
latvian: 80 changes by Tranzistors
spanish (mexican): 10 changes by Absay
4 years ago
SamuXarick a95fbd59a3
Fix #8119, f538179: Update docking tile area when placing a diagonal rail next to a dock end (#8124) 4 years ago
translators 61e1a45100 Update: Translations from eints
latvian: 8 changes by Tranzistors
spanish (mexican): 1 change by Absay
4 years ago
Niels Martin Hansen 2c84549db0 Fix: Two issues in MIDI file writer
Variable-length values would write threshold values with a byte too many.
System Exclusive messages would cause write to fail since the end byte was treated as part of next message.
4 years ago
translators 170f3f9b2b Update: Translations from eints
latvian: 38 changes by Tranzistors
4 years ago
glx22 82573a5e73
Fix #8117: Memory leak in admin port (#8122) 4 years ago
glx22 86e9326b7f
Add: docking tiles cache check (#8120) 4 years ago
glx bc8333723c Fix #8021: limit savegame range for docking tiles fixing 4 years ago
Yexo 64278fd598 Fix: reset roadtype/streetcartype info for non-road bridges 4 years ago
translators 364f6806c8 Update: Translations from eints 4 years ago