Rubidium
04d10b3d2d
Codechange: instead of global pointer to stack variable, just put variable in that global
...
Removes one indirection and a dangling pointer to a stack location
2023-01-28 17:23:30 +01:00
Rubidium
d51d08ddcb
Codechange: put stack variables in global variables for gamelog/crashlog
2023-01-28 17:23:30 +01:00
Rubidium
ed7685910d
Codechange: pass large objects by reference instead of value
...
Especially when they get passed on directly to the next function or via a
constructor into an instance variable
2023-01-28 13:43:21 +01:00
Jonathan G Rennison
c80075b7cc
Add setting and town override for whether towns can build bridges
2023-01-28 11:19:49 +00:00
Jonathan G Rennison
7701d4e813
Ensure secondary track type is valid when switching to dual mode by removing piece
2023-01-27 19:03:35 +00:00
translators
dbc666905d
Update: Translations from eints
...
czech: 10 changes by jacobczsk
dutch: 4 changes by Afoklala
2023-01-27 18:45:27 +00:00
Jonathan G Rennison
4761750eae
Fix asserts due to main window not existing yet
...
Partial revert of https://github.com/OpenTTD/OpenTTD/pull/10327
2023-01-27 17:56:17 +00:00
Rubidium
7e1d272397
Cleanup: remove unused static variables
2023-01-27 07:05:49 +01:00
Rubidium
00721787e1
Fix: wrong type for INVALID_LINK_GRAPH_JOB
2023-01-27 07:05:49 +01:00
Rubidium
755e41de9f
Codechange: make rounding code clearer
...
-O1 already optimizes it to the original hand optimized magic code
2023-01-26 23:47:55 +01:00
Rubidium
71b46db8d0
Cleanup: remove commented out code
2023-01-26 23:47:55 +01:00
Rubidium
5863d78cb4
Codechange: use commented out code, or guard by #ifdef
2023-01-26 23:47:55 +01:00
Rubidium
ae422be979
Cleanup: remove/replace trailing ; with . in comments
2023-01-26 23:47:55 +01:00
Jonathan G Rennison
32fe84cfdd
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/clear_cmd.cpp
# src/main_gui.cpp
# src/saveload/newgrf_sl.cpp
# src/water_cmd.cpp
2023-01-26 22:32:08 +00:00
Henry Wilson
0b2567d882
Codechange: Remove shift as fast-forward key when _DEBUG is defined
2023-01-26 22:15:06 +01:00
SamuXarick
46dc6da270
Codechange: Make void tiles flood edge tiles, instead of edge tiles flooding themselves ( #8517 )
2023-01-26 21:57:25 +01:00
Peter Nelson
ede1201b6a
Codechange: Rename override manager variables.
2023-01-26 21:39:16 +01:00
Peter Nelson
bcc53c5ad5
Codechange: Add missing this->
in override manager.
...
Variable scope is also tweaked in a couple of cases reducing line count.
2023-01-26 21:39:16 +01:00
Peter Nelson
eedb786872
Codechange: Use vector for NewGRF spec overrides.
...
This replaces C-style memory management.
2023-01-26 21:39:16 +01:00
translators
07940726d3
Update: Translations from eints
...
korean: 4 changes by telk5093
2023-01-26 18:45:34 +00:00
Rubidium
2fd99467ea
Fix: scripts are not aware of nullptr, they only know null
2023-01-26 16:07:14 +01:00
Rubidium
f9a473bef7
Fix: missing/duplicate documentation tags for scripts
2023-01-26 16:07:14 +01:00
Rubidium
3112b387e7
Fix: warnings about obsolete settings/setting values in Doxygen configurations
2023-01-26 16:07:14 +01:00
Rubidium
41fa94bc56
Fix: scripts cannot call constructors of ScriptEvents, so remove from the documentation
2023-01-25 22:28:30 +01:00
Rubidium
042f90a9dd
Fix: no ScriptEvent sub class should export constructors to scripts
2023-01-25 22:28:30 +01:00
merni-ns
2d0c1ffdb7
Change #10255 : Reduce basic thickness of linkgraph GUI lines ( #10410 )
...
From 3px to 2px (multiplied by UI scale).
2023-01-25 18:06:19 +00:00
Jonathan G Rennison
66166bad48
extmidi: Do not continuously retry if execvp fails
...
See: #478
2023-01-24 23:55:11 +00:00
Jonathan G Rennison
80f0250de6
Merge branch 'master' into jgrpp
2023-01-24 21:19:09 +00:00
translators
01a2449489
Update: Translations from eints
...
finnish: 8 changes by hpiirai
polish: 4 changes by pAter-exe
2023-01-24 18:44:59 +00:00
PeterN
4dfd6a096f
Fix #10220 : Don't select unselectable engine as default. ( #10404 )
2023-01-24 00:05:42 +00:00
Jonathan G Rennison
051cd43a02
Merge pull request #477 from telk5093/jgrpp
...
Update: Korean translation up to 312361d
2023-01-23 21:42:15 +00:00
Jonathan G Rennison
a9100e93cb
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/group_cmd.cpp
# src/lang/korean.txt
# src/lang/simplified_chinese.txt
# src/script/api/script_rail.cpp
# src/tunnelbridge_cmd.cpp
2023-01-23 19:10:07 +00:00
translators
97844df123
Update: Translations from eints
...
spanish: 4 changes by MontyMontana
2023-01-23 18:43:48 +00:00
Tyler Trahan
9c5de7fd72
Fix #10395 : When loading old saves, don't forcibly bar level crossings ( #10400 )
2023-01-23 18:08:19 +01:00
TELK
7ccea5c006
Update: Fix Korean translation
2023-01-23 16:30:31 +09:00
TELK
51f0c4719a
Update: Korean translation up to 312361d
2023-01-23 16:30:31 +09:00
Rubidium
8aeef665c7
Fix #10377 , Fix 94167df
: bad sorting of rail vehicles when primary variant is missing
2023-01-22 21:13:17 +01:00
translators
7d502e2857
Update: Translations from eints
...
english (us): 4 changes by 2TallTyler
romanian: 10 changes by bnegrut
russian: 4 changes by Ln-Wolf
portuguese: 4 changes by azulcosta
2023-01-22 18:42:21 +00:00
Jonathan G Rennison
50ae79910d
Fix TGP map max height for maps larger than 4k in both axes
2023-01-22 15:22:27 +00:00
SamuXarick
b2a5ebcfc4
Fix 3c047b1
: AIGroup.GetProfitLastYear could get values different than those displayed in GUI ( #10227 )
...
* Change: Store "all time" and "since minimum age" last year profits on groups
* Fix: Update last year profit for groups when copying vehicle statistics on autoreplace
* Codechange: Refactor profit last year
* Change: Rename some group related items for clarity
* Change: Reorder the fields in GroupStatistics
That way less memory gets wasted.
2023-01-22 08:14:02 -05:00
Jonathan G Rennison
1f364c6b21
Fix the viewport map default display mode setting
...
Routes value was missing
Adjust strings
See: #475
2023-01-22 12:39:18 +00:00
translators
8b5fa2cc7b
Update: Translations from eints
...
english (au): 4 changes by krysclarke
2023-01-21 18:42:26 +00:00
Rubidium
7cdc23fd64
Codechange: hide the map's size related fields in the Map structure
2023-01-21 17:11:40 +01:00
Rubidium
de6bc8e692
Codechange: move TILE_MASK to Map::WrapToMap
2023-01-21 17:11:40 +01:00
Rubidium
fe2bcd2a58
Codechange: migrate size related functions to Map structure
2023-01-21 17:11:40 +01:00
Rubidium
d481f78b24
Codechange: add map size related functions to Map structure
2023-01-21 17:11:40 +01:00
Rubidium
9c1a3b17e3
Codechange: use MapLogY() instead of FindFirstBit(MapSizeY()), MapSize() instead of MapSizeX() * MapSizeY()
2023-01-21 17:11:40 +01:00
Rubidium
22d3de8b67
Codechange: use ScriptMap size functions instead of global functions
2023-01-21 17:11:40 +01:00
Rubidium
953445a5ac
Codechange: use MakeSea/AllocateMap in the oldloader instead of MemSetT
2023-01-21 17:11:40 +01:00
Jonathan G Rennison
7ec00f4242
Version: Committing version data for tag: jgrpp-0.50.2
2023-01-20 23:41:38 +00:00