Peter Nelson
726d05b22b
Fix: Don't list unavailable road types for game scripts.
1 year ago
Peter Nelson
5059e23ed5
Revert 8fa61533: "Fix 30ae072: when a road type is hidden, towns may not build them even when that flag is set"
...
This reverts commit 8fa61533f0
.
1 year ago
Henry Wilson
3a03a12a9c
Feature: Show the number of industries already built in the Fund New Industry window.
1 year ago
translators
a934a584a5
Update: Translations from eints
...
italian: 4 changes by Rivarossi
catalan: 4 changes by J0anJosep
dutch: 9 changes by Afoklala
1 year ago
PeterN
da7f431812
Cleanup: widget pos_x/y are already int. ( #10809 )
...
Remove old casts left over from when pos_x/y were unsigned.
1 year ago
PeterN
7e3646cf46
Codechange: Remove redundant char buffer. ( #10808 )
1 year ago
translators
ca31976da0
Update: Translations from eints
...
english (au): 4 changes by krysclarke
english (us): 4 changes by 2TallTyler
russian: 4 changes by Ln-Wolf
portuguese: 4 changes by azulcosta
polish: 8 changes by pAter-exe
1 year ago
Loïc Guilloux
7e74232e56
Change: [Actions] Use -fuse-ld=lld and Ninja for MinGW ( #10785 )
...
And some miscellaneous things while touching the file
1 year ago
PeterN
61516627ad
Add: NewGRF string code "9A 21" to display force from textstack. ( #10782 )
1 year ago
Peter Nelson
59811ec780
Codechange: Use find_if when finding things.
1 year ago
Peter Nelson
e6740046ee
Codechange: Use range-for iteration.
1 year ago
Peter Nelson
cef3a2570d
Codechange: Use standard iterator-erase-loop pattern.
1 year ago
Peter Nelson
a8c0d16371
Cleanup: Use std::advance instead of for-loop.
1 year ago
Peter Nelson
68782f951b
Cleanup: Vector supports random access.
1 year ago
Rubidium
6d1586dd49
Codechange: use std::string instead of char* for original editor strings
1 year ago
translators
7e1123c731
Update: Translations from eints
...
portuguese (brazilian): 30 changes by ericandradex
1 year ago
Loïc Guilloux
3c59b8e9ec
Fix: disable "redundant move" warnings for GCC ( #10803 )
...
GCC warns about redundant std::move while clang warns when they are missing, so we silence the less harmful one
1 year ago
Patric Stout
922d7aa773
Update: help out translators and do the COMMA -> DECIMAL for them ( #10802 )
1 year ago
Michael Lutz
7e906c7c59
Change: Preserve orders and related settings where possible when moving engines around in a train.
1 year ago
Michael Lutz
07449be876
Codechange: A vehicle that is not a front engine can't be removed from a vehicle group, so just remove a pointless function call.
1 year ago
Rubidium
1ae7eb1594
Codechange: use std::map over SmallMap and std::string of stredup(char*)
1 year ago
Rubidium
12085d088c
Cleanup: remove obsolete string_compare_type
1 year ago
Rubidium
bc389a86c9
Codechange: use std::string as std::map key, instead of stredup string
1 year ago
Rubidium
72082aa7d3
Codechange: use std::string for getting a script's name
1 year ago
Rubidium
f1fb6c95fe
Add: case insensitive string comparator
1 year ago
Rubidium
6e3d3c0e7c
Codechange: introduce std::string variant of sq_pushstring
1 year ago
Peter Nelson
f5158c8b79
Feature: Add search filter and name text to build waypoint window.
1 year ago
Peter Nelson
dc50ff807c
Change: Remove incorrect minimal size.
1 year ago
Peter Nelson
b54d7f15ac
Change: Reduce size of waypoint matrix to 3 x 2.
1 year ago
Peter Nelson
0513a6ccb0
Change: Use separate names for default stations/roadstops.
1 year ago
Peter Nelson
93d49fa8b3
Fix: Make scrollwheel work on panel behind waypoint matrix.
1 year ago
Peter Nelson
bf9caa425b
Change: Units-system can convert from N to kN, don't preconvert.
...
This allows force to passed as is and avoid premature rounding.
The AI function "GetMaxTractiveEffort" still needs to return kN to avoid breaking the API.
1 year ago
Peter Nelson
e2f583a34f
Change: Standardise unit conversions and allow decimal places.
...
Previously the decimal_places member was mostly ignored except for
specific conversions. {DECIMAL} with 0 is the same as {COMMA} so there
is no downside to allowing any conversion to have decimals.
1 year ago
Peter Nelson
3c2f87ce1f
Change: Perform unit convert with a double-precision constant.
...
Unit conversion is only performed for display purposes, this does not
affect lock-step mechanics.
This replaces the old multiply and shift algorithm which relies on
choosing a multipler and shift combination that gets close. Some of these
multiply/shift combinations were quite inaccurate. We can just
use (close-to) real-world numbers instead.
1 year ago
PeterN
644e310506
Fix: Incorrect y-position of monospace glyphs. ( #10794 )
1 year ago
Patric Stout
febe394806
Codechange: replace C-style strings with C++-style strings in textfile ( #10772 )
1 year ago
translators
90529ea48b
Update: Translations from eints
...
catalan: 30 changes by J0anJosep
french: 25 changes by glx22
polish: 5 changes by pAter-exe
1 year ago
PeterN
6998fbf71d
Fix: WWT_TEXT with SetTextStyle did not work. ( #10797 )
...
FontSize was passed to incorrect parameter of DrawString function.
1 year ago
Peter Nelson
d68c4bbd2f
Change: Use iterator when drawing industry cargo window.
1 year ago
Peter Nelson
cccf4953f7
Fix: Incorrect padding on industry cargo window.
1 year ago
PeterN
882f06bf14
Fix: Support more than 256 stations/waypoints/roadstops per class. ( #10793 )
...
It was already possible to define more than 256 per class, but not possible
to use them as the index used in GUI and passed through commands was limited
to a byte.
1 year ago
Patric Stout
a05ae2497f
Codechange: simplify how GetCharPosition() works
1 year ago
Patric Stout
60399e17bd
Codechange: C++-ify the Layouter and related functions
...
They all now access a std::string_view, instead of a "const char *"
or std::string (in some cases).
Additionally, GetCharAtPosition and friends now return an index
instead of a "const char *", as it makes for a more clear interface.
1 year ago
Tyler Trahan
61d1b330d1
Change: Add padding to build vehicle text filter ( #10792 )
1 year ago
Patric Stout
aed36a609c
Fix: [ICU] crash when trying to break a non-breaking run ( #10791 )
...
Clusters from harfbuzz are indexed from the start of the buffer,
not from the start of the run analyzed. This confuses other parts
of the code that do assume they are from the start of the run.
1 year ago
PeterN
bc6a4b1d08
Fix: Set up default station/waypoint classes properly. ( #10789 )
1 year ago
J0anJosep
c4e6d80ecf
Cleanup: Remove unnecessary hangar check.
1 year ago
Rubidium
68ff3fd062
Change: include fmt.h C++ headers in stdafx.h
...
This to prevent compilation issues between runs with and without precompiled
headers. Also remove the headers from the rest of the code base as they are
not needed there anymore, although they do relatively little harm.
1 year ago
Rubidium
192ed55462
Change: disable precompiled headers on Linux (GCC - Dedicated) target to ensure those still build
1 year ago
Rubidium
2955ff33d7
Change: use precompiled headers for stdafx.h and 3rdparty/fmt/format.h
1 year ago