Rubidium
4f94655cc2
Codechange: use vector/unorder_map over custom implementation
2023-06-02 11:57:23 +02:00
Rubidium
234a143ee5
Codechange: use std::string for LangString over C-style strings
2023-06-02 11:57:23 +02:00
Rubidium
f372373e6f
Codechange: use std::string/vector for language cases over manual management
2023-06-02 11:57:23 +02:00
Rubidium
6eb51666bc
Codechange: use C++ file APIs for writing language files
2023-06-02 11:57:23 +02:00
Rubidium
fa0d865edd
Change: set macOS deployment target to 10.15
2023-06-02 11:57:23 +02:00
PeterN
0b663f709d
Codechange: Sprite mapping for objects doesn't involve cargo types. ( #10905 )
...
Objects have a default sprite group and an optional purchase list sprite
group. There is no need to pretend that these are cargo IDs.
2023-06-02 08:25:13 +00:00
Jonathan G Rennison
cdb3a6288b
Codechange: Remove unused CapacitiesMap typedef from struct Vehicle
2023-06-01 22:48:47 +02:00
Patric Stout
9eda419f9b
Fix 646a7e62
: recalc_time was not scaled properly ( #10901 )
...
This caused "runtime" to underflow or, if you are lucky, hit an
assert in ScaleToMonthly when it hits zero. But mostly underflow.
2023-06-01 12:21:33 +00:00
translators
b5b004e518
Update: Translations from eints
...
ukrainian: 117 changes by alextov
2023-05-31 18:42:26 +00:00
Rubidium
f29606fd14
Codechange: use std::string to cache engine/group/vehicle names
2023-05-31 19:31:09 +02:00
Rubidium
d9f8a4c380
Codechange: use std::string GetString variant
2023-05-31 19:31:09 +02:00
Rubidium
324c43eeb2
Codechange: let FiosGetDiskFreeSpace only return disk space and split FiosGetCurrentPath off
2023-05-31 10:56:33 +02:00
Rubidium
f2e704b9a7
Codechange: use std::string for FiosIsRoot
2023-05-31 10:56:33 +02:00
Rubidium
13789d1703
Codechange: use std::string for FiosIsValidFile
2023-05-31 10:56:33 +02:00
PeterN
1ff0dc11d8
Fix: Land info window maximum width was not scaled. ( #10894 )
2023-05-31 08:54:39 +00:00
Patric Stout
0302e6f168
Codechange: initialize all values of ICURun on construction ( #10892 )
2023-05-30 19:17:30 +00:00
translators
c8b70e4877
Update: Translations from eints
...
ukrainian: 53 changes by alextov
portuguese (brazilian): 1 change by ericandradex
2023-05-30 18:40:56 +00:00
translators
e1203c3a48
Update: Translations from eints
...
esperanto: 51 changes by legoscia
2023-05-29 18:39:22 +00:00
PeterN
d086f288cd
Codechange: Remove duplicated includes. ( #10888 )
...
These are now included by stdafx.h so don't need to be included again.
2023-05-29 14:29:00 +01:00
PeterN
702194cfef
Change: Cargo flow legend only shows defined cargo. ( #10872 )
...
This removes the large mostly-empty grid of cargo buttons when not using a complex industry set.
2023-05-29 06:48:43 +01:00
translators
c9c6721a47
Update: Translations from eints
...
esperanto: 44 changes by legoscia
2023-05-28 18:42:42 +00:00
Peter Nelson
bae1897826
Change: Include font style in font name for Freetype.
2023-05-27 20:40:25 +01:00
Peter Nelson
9976293c1e
Codechange: Return fontcache font name as std::string.
2023-05-27 20:40:25 +01:00
translators
90fdf17e39
Update: Translations from eints
...
esperanto: 28 changes by legoscia
2023-05-27 18:40:39 +00:00
Loïc Guilloux
c880157518
Fix: Check max member count in squirrel classes ( #10883 )
...
Manual cherry-pick from 23a0620658
2023-05-27 16:09:21 +00:00
PeterN
8ea9c1a133
Fix #10880 : Crash in object window due to incorrect parameter order. ( #10881 )
2023-05-26 21:29:52 +00:00
PeterN
876871157f
Fix: Ask FontConfig for the face index when opening fonts. ( #10878 )
...
This allows selection of the correct face in truetype fonts containing
multiple faces.
2023-05-26 18:56:13 +00:00
PeterN
101e4e54a1
Fix d9a04ba446
: Ensure MD5Hash is initialized. ( #10876 )
...
Not all instances need to be initialized as often they are copied or
written to, but doing all ensures no surprises.
Move the ^= operator to MD5Hash while we're at it.
2023-05-26 18:17:54 +00:00
Jonathan G Rennison
ba11467c02
Fix: Rail waypoint selection window not closed
...
When rail toolbar or rail waypoint build windows closed
2023-05-26 08:41:13 +02:00
PeterN
584faaf064
Change: Reorganise industry accept/produce arrays. ( #10853 )
...
Use a array of struct for each cargo instead of an array for each statistic.
This makes iterating for acceptance and production much simpler.
pct_transported is now calculated when needed.
2023-05-25 21:25:46 +01:00
Loïc Guilloux
db3b086a52
Fix #10867 , 8b93e45
: Squirrel compile error exception type changed ( #10869 )
2023-05-25 12:46:27 +02:00
Rubidium
b133328737
Codechange: use std::string over strecat to create the RV capacity string
2023-05-25 05:43:00 +02:00
Rubidium
4fdde00e25
Codechange: use std::string to create the GRF parameter list
2023-05-25 05:43:00 +02:00
Rubidium
fbab94eabb
Codechange: use std::string to create error message about external files
2023-05-25 05:43:00 +02:00
Rubidium
30b9e02dd9
Codechange: replace crashlog filenames with std::string in Crashlog
2023-05-25 05:42:10 +02:00
Rubidium
19304bd3d5
Codechange: replace seprintf with fmt::format for filling the crash log data
2023-05-25 05:42:10 +02:00
Rubidium
f4b0ac2bd4
Codechange: use std::string for formatting settings
2023-05-24 22:42:01 +02:00
translators
1412ea48ed
Update: Translations from eints
...
esperanto: 268 changes by legoscia
2023-05-24 18:40:52 +00:00
Peter Nelson
09408e8e46
Codechange: Add IsCargoAccepted/Produced() helpers.
2023-05-24 17:34:11 +01:00
Peter Nelson
633f19419d
Codechange: Make more use of GetCargoAccepted/ProducedIndex().
2023-05-24 17:34:11 +01:00
Rubidium
29b20718ba
Codechange: use Tthis instead of StrongTypedef, so ==/= does not compare/assign different strong typedefs
2023-05-23 20:46:32 +02:00
translators
9f0e406a51
Update: Translations from eints
...
esperanto: 18 changes by legoscia
2023-05-23 18:41:14 +00:00
Peter Nelson
8931e90302
Cleanup: No need to cound actual cargo to get scroll count.
2023-05-23 19:07:36 +01:00
Peter Nelson
f177ce7c9a
Codechange: Base CargoArray off std::array.
...
This avoids needing to define array accessors and allows use of
default value initialization.
2023-05-23 19:07:36 +01:00
Peter Nelson
74e42e39a8
Codechange: Use CargoArray::GetCount()
2023-05-23 19:07:36 +01:00
Loïc Guilloux
a6c5b4ce4b
Cleanup: Remove BOM/ZWNBSP in the middle of .editorconfig ( #10860 )
2023-05-23 12:49:47 +02:00
Peter Nelson
76516d7f70
Codechange: Use IsValidCargoID/IsValidCargoType.
...
IsValidCargoType() is used only for unmapped IDs.
2023-05-22 20:43:40 +01:00
Peter Nelson
c4ca6a0f74
Codechange: Rename IsCargo..Valid to IsValidCargo..
...
This better fits our naming pattern for this type of function.
2023-05-22 20:43:40 +01:00
translators
e2827d0e9c
Update: Translations from eints
...
galician: 41 changes by pvillaverde
esperanto: 95 changes by legoscia
portuguese (brazilian): 18 changes by ericandradex
2023-05-22 18:40:22 +00:00
Rubidium
a19a43a4f7
Codechange: use fmt::format and time conversions over "custom" implementation
2023-05-22 15:36:09 +02:00