Patric Stout
d9ec8053d7
Fix #8050 : ending-year of 5000000 allows you to get to year 5000001 and beyond
...
MAX_YEAR is set to 5000000, but having an ending-year set to the
same meant you could bypass this, and play till the uint32 wrapped.
The game can either show highscore or wrap year, not both. When
you would do both, every year you get the highscore dialog.
By changing the maximum value of ending-year to 4999999 we prevent
this issue.
2021-01-08 11:17:08 +01:00
Charles Pigott
9b800a96ed
Codechange: Remove min/max functions in favour of STL variants ( #8502 )
2021-01-08 11:16:18 +01:00
milek7
c1fddb9a6a
Codechange: Check if access __attribute__ is supported before trying to use it.
2021-01-08 09:12:37 +00:00
milek7
639cfa43d2
Codechange: Use access __attribute__ to silence warnings in GCC
2021-01-08 00:40:45 +00:00
SamuXarick
79d938b957
Fix 0125892
: Warning about unsigned unary minus
2021-01-07 21:42:10 +00:00
Patric Stout
725d793be1
Fix: don't allow cloning vehicles if cloning orders is failing ( #8515 )
...
Before this fix, any failing clone order was silently ignored
and you as user would never know till you checked the order list.
Evil.
2021-01-07 19:58:04 +01:00
translators
51e22515a8
Update: Translations from eints
...
spanish (mexican): 5 changes by absay
korean: 5 changes by telk5093
finnish: 5 changes by hpiirai
latvian: 14 changes by lexuslatvia
spanish: 23 changes by SeveralCircles, 10 changes by Luis45ccs
polish: 5 changes by yazalo
2021-01-07 18:28:27 +00:00
SamuXarick
f84a466ca5
Fix #7945 : Add cost of clearing the sloped tile when placing a dock ( #7947 )
2021-01-07 10:35:09 +01:00
Patric Stout
c988b4d62b
Fix #8332 : aborting group drag&drop could cause crashes with vehicle drag&drop ( #8511 )
...
The selected group was not reset when drag&drop was aborted. When
after that vehicle drag&drop was successful, group drag&drop code
was still executed, causing weird behaviour or even crashes.
2021-01-07 10:32:24 +01:00
Kuhnovic
a3a7928372
Feature: option to auto remove signals when in the way during rail construction ( #8274 )
2021-01-07 10:17:05 +01:00
Patric Stout
1b675e7075
Fix #8068 : always allow removal of tram track if that generates money ( #8509 )
...
Even if you are completely broke, generating money should always
be allowed.
2021-01-07 08:01:46 +01:00
Patric Stout
c7609e767f
Fix #7604 : prevent houses to wander too far from town center when rebuilding ( #8507 )
...
When a multi-tile house is rebuild, it always used the most northern
tile to build the new house. This can very easily lead to houses
wandering off in the north-ish direction (either NW or NE).
To prevent this, pick the tile closest to town center when rebuilding
on a multi-tile house. This still means a house can be build away
from a road, but it is no longer wandering around finding another
town to call home.
2021-01-07 08:01:23 +01:00
Patric Stout
28c13ec90f
Fix #8168 : allow relocating of HQ partial over existing HQ ( #8510 )
...
Just in case you want to move it SLIGHTLY to the right.
2021-01-06 22:37:57 +01:00
Patric Stout
a4e34e824c
Change: towns can now bridge 4 rails (up from 3)
...
Having 4 rails is a pretty common design, and towns now couldn't
bridge out of this common design.
2021-01-06 21:39:34 +01:00
Didac Perez Parera
64eddaeb49
Feature: Make maximum length of town bridges depend on population.
2021-01-06 21:39:34 +01:00
translators
c3faec4e9a
Update: Translations from eints
...
polish: 7 changes by yazalo
2021-01-06 18:27:36 +00:00
Patric Stout
62cdadb582
Change: move "give money" from client-list to company window
...
This is a much better location for this button, as you send
money from one company to another company, not from player
to player.
This is based on work done by JGRPP in:
f820543391
and surrounding commits, which took the work from estys:
https://www.tt-forums.net/viewtopic.php?p=1183311#p1183311
We did modify it to fix several bugs and clean up the code while
here anyway.
The callback was removed, as it meant a modified client could
prevent anyone from seeing money was transfered. The message
is now generated in the command itself, making that impossible.
2021-01-05 21:56:24 +01:00
Patric Stout
d6e15d4943
Fix: make the "password" button the same size as the other buttons in Company window
...
Currently password-lock icon + button was the same size, but this
looks really weird. Now they are in sync, even with other fonts
and languages.
2021-01-05 21:56:24 +01:00
Patric Stout
a3f0ee3b63
Codechange: fix alignment of Company GUI
...
Code acted as if WWT_TEXT starts a scope; it does not.
2021-01-05 21:56:24 +01:00
Patric Stout
fc474b02fa
Fix: change all Company planes on paint, not only the first that needs changing
...
Otherwise it can take a few OnPaint() calls before all planes are
set correctly when switching companies.
2021-01-05 21:56:24 +01:00
Patric Stout
dff7ee8e1c
Fix #7611 : keeps news about accidents around after vehicle is cleaned up ( #8497 )
...
When a vehicle is cleaned up, all news that points to the news is
also removed. This was a bit evil, as it would also remove any
news related to crashed, acting like the crash never happened.
This left players a bit in the dark what was going on exactly.
2021-01-05 21:39:23 +01:00
translators
0fd2108f7f
Update: Translations from eints
...
persian: 24 changes by alisaffari97
2021-01-05 18:27:57 +00:00
Patric Stout
f2fa2a14d7
Fix: allow input of numbers greater than INT32_MAX for GiveMoney ( #8499 )
...
Based on patch by JGR.
2021-01-05 19:00:05 +01:00
Patric Stout
bb28ff7226
Codechange: DC_NO_RAIL_OVERLAP is a remnant of the OldAI. ( #8496 )
...
The OldAI was removed in 2009. Pretty sure we can remove this flag
now too.
2021-01-05 12:36:57 +01:00
gooball
c017a3662a
Change: converting town-owned road types now require town rating ( #8457 )
2021-01-05 11:45:07 +01:00
Charles Pigott
e21302f481
Fix #8437 : Crash when using certain heliports with rotated airports
2021-01-05 11:42:51 +01:00
Charles Pigott
619d714923
Fix #8437 : Planes landing at non-rectangular airports could be drawn at the wrong height
...
Only the rotated intercontinental airport, don't get excited
2021-01-05 11:42:51 +01:00
Matt Kimber
5728f9c7d0
Codechange: consider vehicle co-ordinates when identifying viewport candidate as using only the hash generates false positives
2021-01-05 11:42:25 +01:00
Matt Kimber
9b28b15e67
Codechange: create MutableSpriteCache to remove the need to cast Vehicle to a mutable type in render methods
2021-01-05 11:42:25 +01:00
Matt Kimber
eeb88e87d8
Codechange: improve performance for complex vehicle chains by resolving sprites less often
2021-01-05 11:42:25 +01:00
Michael Lutz
979b4af6ca
Revert 4ce53cb8
: [OSX] Delayed fullscreen switch is not needed anymore.
...
The fix for #8067 solves the real issue, making this workaround unneeded.
2021-01-03 22:24:04 +01:00
Michael Lutz
6e8be3b03e
Fix #8067 : [OSX] Calculate title bar height instead of assuming a fixed value.
2021-01-03 22:24:04 +01:00
Andy
0f91cb0479
Fix: GetCurveSpeedLimit needs railtype from current tile ( #8466 )
2021-01-03 22:19:06 +01:00
Michael Lutz
4ce53cb851
Fix: [OSX] Quitting in fullscreen mode would loose the original window size.
...
This replicates the behaviour on e.g. Windows, which saves the original window size.
2021-01-03 21:20:28 +01:00
Michael Lutz
c860a247d3
Change: [OSX] Hide Dock and menu during fullscreen mode.
2021-01-03 21:20:28 +01:00
translators
784a4ef9b5
Update: Translations from eints
...
spanish (mexican): 14 changes by absay
finnish: 32 changes by hpiirai
polish: 2 changes by yazalo
2021-01-03 18:25:04 +00:00
frosch
b08d8c7edb
Cleanup 9f42358
: Make also reliability_start randomised independent of introduction date.
2021-01-03 14:56:43 +00:00
frosch
d24a9a9df5
Cleanup 8139b14
: Move a comment back to the line it belongs to, and add a comment for new code.
2021-01-03 14:56:43 +00:00
Michael Lutz
21a45168bd
Codechange: [OSX] CMake source group for OSX files.
...
This separates the OSX specific files into a proper folder when generating
Xcode project files.
2021-01-03 13:25:32 +01:00
Michael Lutz
6ad5489d01
Codechange: [OSX] Silence some annoying warnings.
2021-01-03 13:25:32 +01:00
Michael Lutz
7bdaabf5f1
Cleanup: [OSX] Remove cargo cult back-buffer alpha setting on show/hide and instead simply initialise the buffer on allocation.
2021-01-03 13:25:32 +01:00
Michael Lutz
a61a741683
Change: [OSX] Compiling the Cocoa/Quartz video driver cannot be disabled anymore.
2021-01-03 13:25:32 +01:00
Michael Lutz
9ccef816f9
Codechange: [OSX] Re-arrange the OSX video driver code by combining all drawing code and moving the window/event handling to a different file.
...
This is just a code move/rename, not a functionality change.
2021-01-03 13:25:32 +01:00
Patric Stout
ab7da117e0
Add: always set PERSONAL_DIR "/content_download" in search path ( #8481 )
...
This means that if you start OpenTTD with "-c" to indicate another
location to store files, it can still read the content you already
downloaded from your PERSONAL_DIR. This folder is, however,
read-only.
This is useful for situations where you downloaded OpenGFX via
the content-service, but want to run the regression or want to
run with a clean configuration. With this change, you no longer
need to download OpenGFX again.
2021-01-03 11:10:56 +01:00
Michael Lutz
8c24b2b6ce
Fix: [OSX] Fonts loaded directly from a file have to be registered with CoreText for proper text layout.
2021-01-03 01:00:28 +01:00
Patric Stout
4bd3d18f34
Add: use our search-paths to find fonts based on relative filenames too
...
This allows "small_font = ./myfont.ttf", with "myfont.ttf" located
in "~/.openttd".
2021-01-02 23:44:37 +01:00
Patric Stout
126f40e012
Doc: indicate where to find an excellent tutorial on using CMake ( #8475 )
2021-01-02 20:54:57 +01:00
2TallTyler
fe51051b7c
Change: Default settings improved for new players
2021-01-02 19:50:22 +00:00
Charles Pigott
10090d0ac6
Add: [CMake] Explicitly support txz for Arch Linux
2021-01-02 19:47:14 +00:00
Charles Pigott
3dfee979a7
Codechange: Drop libxdg-basedir dependency in favour of finding the directories ourselves
2021-01-02 19:46:08 +00:00