summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2021-08-17Fix: report reuse of invite-code and switch to local game-type (#9487)Patric Stout
This prevents two servers battling for the same invite-code. Now the last one wins.
2021-08-16Update: Translations from eintstranslators
chinese (simplified): 1 change by goodspeed34
2021-08-16Codechange: Improve LineCache queries (#9417)Frédéric Simonis
Adds the support to query the linecache without copying the string. This uses a custom transparent comparator in conjunction with a query type using a std::string_view.
2021-08-16Fix: connecting with the same name thrice hangs the server (#9485)dP
2021-08-15Update: Translations from eintstranslators
chinese (simplified): 82 changes by goodspeed34 french: 2 changes by glx22 portuguese: 1 change by azulcosta portuguese (brazilian): 2 changes by Vimerum
2021-08-15Update: Translations from eintstranslators
portuguese: 1 change by azulcosta
2021-08-15Change: rebrand 1.12.0 to 12.0Patric Stout
One question that keeps popping up: "when do we release 2.0?". NewGRF will force that at least 1.16 will be 2.0, but to not wait for this, let's drop the "1." and be for ever done with that conversation. We are following in the footstep of giants here.
2021-08-15Fix 2183fd4d: [NewGRF] Use divide instead of right shift for signed numbers. ↵Michael Lutz
(#9480) "For negative a, the value of a >> b is implementation-defined (in most implementations, this performs arithmetic right shift, so that the result remains negative)."
2021-08-15Feature: [NewGRF] Maximum curve speed modifier for rail vehicles (#9346)Vít Šefl
2021-08-15Add: open Online Players GUI on starting/joining a server (#9479)Patric Stout
2021-08-14Remove: COMPANY_INFO packets and related code (#9475)Patric Stout
2021-08-14Feature: make "join game" button join the game, instead of first showing a ↵Patric Stout
lobby window (#9467) Nobody really paid attention to the lobby window, and it completely missed its purpose. Most people don't even wait for companies to show up, but just hit "New Company". This in turn means people create a lot of unneeded companies, while they "just want to watch the game" or join another company. Instead, "Join Game" now just joins the game as spectators.
2021-08-14Fix 508e465b: network servers didn't show invite-code / connection-type in ↵Patric Stout
Online Players GUI (#9478) The selector selects the first widget, which by accident was now only the server visibility.
2021-08-14Update: Translations from eintstranslators
2021-08-14Fix: name the Online Players caption the same as in the menu (#9473)Patric Stout
Referring to one window in two ways is a bit annoying.
2021-08-14Add: synchronize server name to clients and display in Online Players GUI ↵Patric Stout
(#9472)
2021-08-14Add: mention you are a spectator in the status bar (if you are, ofc) (#9471)Patric Stout
2021-08-12Add: [AI] Get the number of vehicles in a given group (#9462)SamuXarick
2021-08-11Fix #8316: Make sort industries by production and transported with a cargo ↵SamuXarick
filter possible (#8468)
2021-08-11Fix #9392: Return a valid value with GetBuildWithRefitCapacity when AIs are ↵SamuXarick
maxed out in vehicles (#9393)
2021-08-10Fix 8706dcd9: [Script] Byte-swap grfids to match normal expectations.Michael Lutz
2021-08-10Update: Translations from eintstranslators
2021-08-10Change: remove the ability to control "max spectators" (#9466)Patric Stout
Soon we will make "join game" join the game as spectator first, so limiting the amount of spectators makes no sense anymore in that context. Not sure it ever did make sense.
2021-08-10Fix 68f2213: Don't use GetPoolSize() for end of pool iterator (#9461)Loïc Guilloux
2021-08-10Fix 14f197c: [Script] int64 values don't fit into int (#9465)Loïc Guilloux
2021-08-09Add: [Script] Basic information about loaded NewGRFs for scripts. (#9464)Michael Lutz
Currently, scripts use various heuristics to detect loaded NewGRFs that are inherently unreliable. The list of loaded NewGRFs is easily accessible to a human player, and thus giving scripts the same information is consistent with the current approach to not give scripts more information than a human player.
2021-08-07Update: Translations from eintstranslators
vietnamese: 28 changes by KhoiCanDev
2021-08-05Update: Translations from eintstranslators
latvian: 13 changes by osprinkis
2021-08-04Update: Translations from eintstranslators
norwegian (bokmal): 28 changes by Anolitt
2021-08-02Update: Translations from eintstranslators
french: 12 changes by glx22
2021-08-02Fix #9440: negative cargo payments not being handled rightRubidium
Cargo payments were stored as unsigned integer, but cast to int64 during application of inflation. However, then being multiplied with a uint64 making the result uint64. So in the end the payment that should have been negative becomes hugely positive.
2021-08-01Fix: Use of unstable sort when distributing cargo production can cause desyncsdP
2021-07-31Update: Translations from eintstranslators
portuguese (brazilian): 6 changes by Vimerum
2021-07-30Update: Translations from eintstranslators
dutch: 13 changes by Afoklala
2021-07-29Update: Translations from eintstranslators
slovak: 39 changes by ApplePie420
2021-07-28Update: Translations from eintstranslators
finnish: 14 changes by hpiirai
2021-07-27Update: Translations from eintstranslators
german: 10 changes by Wuzzy2
2021-07-26Update: Translations from eintstranslators
german: 4 changes by danidoedel romanian: 23 changes by ALEX11BR portuguese (brazilian): 6 changes by jpsl00
2021-07-25Update: Translations from eintstranslators
romanian: 17 changes by ALEX11BR
2021-07-24Update: Translations from eintstranslators
swedish: 9 changes by joeax910 russian: 1 change by Ln-Wolf
2021-07-23Update: Translations from eintstranslators
russian: 9 changes by Ln-Wolf catalan: 25 changes by J0anJosep
2021-07-22Update: Translations from eintstranslators
spanish (mexican): 13 changes by absay
2021-07-21Cleanup: remove some references to the old master-serverRubidium
2021-07-21Fix: crash when joining a server again after a TCP disconnect (#9453)Patric Stout
"my_client" wasn't always free'd when a game ended. "my_client" keeps a reference inside the PT_NCLIENT pool. The rest of the code assumes that when you are not in a game, it can freely reset this pool. In result: several ways to trigger a use-after-free.
2021-07-21Update: Translations from eintstranslators
english (us): 15 changes by 2TallTyler korean: 12 changes by telk5093 russian: 3 changes by Ln-Wolf portuguese: 12 changes by azulcosta polish: 98 changes by pAter-exe
2021-07-21Fix #8335: Race condition in music mixer (#9450)HEADmasterCharles Pigott
2021-07-20Update: Translations from eintstranslators
swedish: 1 change by joeax910 romanian: 36 changes by ALEX11BR
2021-07-20Feature: allow the use of TURN to connect client and server togetherPatric Stout
TURN is a last resort, used only if all other methods failed. TURN is a relay approach to connect client and server together, where openttd.org (by default) is the middleman. It is very unlikely either the client or server cannot connect to the STUN server, as they are both already connected to the Game Coordinator. But in the odd case it does fail, estabilishing the connection fails without any further possibility to recover.
2021-07-20Fix: [Network] rework when to close connections and inform Game Coordinator ↵Patric Stout
if needed
2021-07-20Codechange: Make OverflowSafeInt constexprCharles Pigott