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.
2020-07-03 09:08:46 +02:00
stormcone
816fada2b1
Fix #8250 : [NRT] Company infrastructure window always omits last road/tramtype
2020-07-02 12:35:28 +02:00
translators
94d5fcab4b
Update: Translations from eints
...
czech: 3 changes by djst
2020-07-01 19:45:39 +02:00
dP
7045186594
Change #8159 : Remove now unused town cargo caches without bumping the savegame version
2020-06-28 18:23:59 +02:00
dP
380fd8cab4
Fix: Make subsidies scan tiles for town acceptance and production instead of using desync-prone town caches
2020-06-28 18:23:59 +02:00
dP
ca2604c4e2
Revert #8157 : Redundant change
2020-06-28 18:23:59 +02:00
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.
2020-06-28 15:33:37 +02:00
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.
2020-06-28 15:32:53 +02:00
Jonathan G Rennison
54237b0e98
Codechange: Move SlSkipBytes to saveload.h
2020-06-28 15:32:53 +02:00
ilayaraja97
cf8ccf4b08
Fix #8131 : small bridges also have pillars drawn
2020-06-28 13:54:04 +01:00
TrevorShelton
a4a9908a51
Fix #8221 : Missing specific error message for bridge too long ( #8240 )
2020-06-28 12:53:56 +01:00
Charles Pigott
218db00c4c
Fix #8216 : Don't show floating text on autoreplace if cost is 0
2020-06-28 00:00:28 +01:00
duck
1bc7047af7
Doc: Acknowledge integer type mismatch in certain admin packets using AdminUpdateType ( #8238 )
2020-06-27 18:21:17 +02:00
Charles Pigott
75a2ae2f48
Change: Also make roadside trees match the tree transparency option
2020-06-27 16:07:17 +01:00
Charles Pigott
4c45448fa9
Fix #8129 : Crash if a news message expires while viewing the endgame screen
2020-06-27 16:07:08 +01:00
Charles Pigott
dc8d0089e9
Codechange: Make sure script enums are the same size as their normal counterparts
2020-06-27 14:51:14 +01:00
Charles Pigott
e5f931ef42
Fix: Warning about using the wrong enum type
2020-06-27 14:51:14 +01:00
Charles Pigott
64b1c70fdd
Codechange: Add WARN_FORMAT to vseprintf and fix the cascade of warnings that followed
2020-06-27 14:51:14 +01:00
Charles Pigott
224acb78b0
Fix: Compiler warnings about memsetting non-trivial classes
2020-06-27 14:51:14 +01:00
Abdurrahmaan Iqbal
8a655c7fb6
Fix #8232 : 'Huge screenshot' warning being shown incorrectly
2020-06-27 14:19:35 +01:00
TechGeekNZ
3c8d0aa354
Cleanup: Give `TakeScreenshot` a more sensible name
2020-06-27 14:19:35 +01:00
TechGeekNZ
ed6f31f601
Cleanup: Remove redundant implementation of TakeScreenshot
2020-06-27 14:19:35 +01:00
dP
a2e1102b15
Feature: Increase max possible distance from border for oil refineries and rigs
2020-06-27 14:18:31 +01:00
translators
b84d61ef6e
Update: Translations from eints
...
indonesian: 16 changes by adjayanto
2020-06-25 19:45:42 +02:00
translators
78b6587c40
Update: Translations from eints
...
swedish: 3 changes by Joel_A
2020-06-24 19:45:42 +02:00
translators
6d135d4b01
Update: Translations from eints
...
ukrainian: 1 change by nsergiy
korean: 1 change by telk5093
2020-06-22 19:45:40 +02:00
glx22
87a069c887
Fix #8230 : Resolve ".." when opening files in .tar ( #8231 )
2020-06-22 14:21:11 +02:00
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.
2020-06-22 08:02:42 +02:00
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.
2020-06-21 11:47:56 +01:00
translators
9aca6ff971
Update: Translations from eints
...
swedish: 33 changes by Joel_A
2020-06-19 19:45:40 +02:00
Jonathan G Rennison
b0f192abc4
Fix: Racy use of flags in TCPConnecter::CheckCallbacks
...
conected and aborted flags are used concurrently from multiple threads.
2020-06-18 19:57:34 +02:00
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
2020-06-18 12:38:43 +02:00
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
2020-06-18 12:38:43 +02:00
Jonathan G Rennison
084b073e57
Codechange: Use template type for GUIList::Sort comparator
2020-06-18 12:38:43 +02:00
frosch
d8182b7e15
Change: Allow command cost-estimation while paused.
2020-06-18 08:59:27 +01:00
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.
2020-06-18 08:56:27 +01:00
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.
2020-06-18 08:53:06 +01:00
translators
208614343f
Update: Translations from eints
...
polish: 1 change by MaksOPENTTD1
danish: 1 change by beruic
2020-06-12 19:45:39 +02:00
TechGeekNZ
ee570e1b6d
Cleanup: Fix typos in code comments.
2020-06-09 13:15:47 +01:00
TechGeekNZ
8652a4db76
Cleanup: Give `SetDirtyBlocks` a more descriptive name.
2020-06-09 13:15:47 +01:00
arikover
caab095e4e
Fix: [CMake] SDL2 Sound was not included
2020-06-09 13:06:33 +02:00
Miguel Horta
40436019fd
Fix: Display banlist's indexes correctly
...
Bug introduced via commit ab711e6942
2020-06-08 21:56:57 +01:00
TechGeekNZ
fe1925931d
Cleanup: Correct typographic errors in code comments.
2020-06-07 01:04:41 +01:00
TechGeekNZ
3d8597d42e
Cleanup: Add undocumented parameter to GetSpriteSize.
2020-06-07 01:04:41 +01:00
Patric Stout
4d04009d12
Codechange: remove #ifdef from .cpp files to exclude features
...
With CMake, these files are simply not compiled to start with.
2020-06-05 19:36:05 +02:00
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.
2020-06-05 19:36:05 +02:00
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.
2020-06-05 14:47:33 +01:00
TechGeekNZ
937b366546
Cleanup: StationCargoList::AreMergable doxygen comment references Vehicle instead of Station.
2020-06-05 14:27:09 +01:00
TechGeekNZ
012fea301d
Cleanup: Add note explaining how settings.h is generated from source.
2020-06-05 08:38:40 +02:00
TechGeekNZ
f246f8faef
Cleanup: Fix typo in settings.h.preamble.
2020-06-05 08:38:40 +02:00