summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2021-04-24Codechange: encapsulate the logic about how many bytes can be sent from a ↵Rubidium
buffer in to a Packet
2021-04-24Codechange: move the logic shrinking of the packets into the Packet itselfRubidium
2021-04-24Codechange: encapsulate writing data from Packets into sockets/files/buffers ↵Rubidium
to prevent packet state modifications outside of the Packet
2021-04-24Codechange: encapsulate reading data from sockets into Packets to prevent ↵Rubidium
packet state modifications outside of the Packet
2021-04-24Codechange: move logic whether there is enough space in a packet to write ↵Rubidium
data into the Packet
2021-04-24Codechange: move more logic about packet size validity and reading into PacketRubidium
2021-04-24Update: Translations from eintstranslators
korean: 2 changes by telk5093 russian: 3 changes by Ln-Wolf finnish: 1 change by hpiirai spanish: 1 change by MontyMontana polish: 1 change by pAter-exe hindi: 62 changes by ss141309
2021-04-24Update: Developer credits (#9091)Leif Linse
2021-04-24Codechange: Use std::string in console commands/aliases registration, and ↵Loïc Guilloux
std::map instead our sorted linked list (#9057) * Codechange: Use std::string in console commands and aliases registration * Codechange: Use std::map to register console commands * Codechange: Use std::map to register console aliases * Cleanup: Remove now unused function
2021-04-24Add: [Network] Validate the client name when receiving one from the serverrubidium42
This so names from other clients are known valid in the client as well, instead allowing some compromised/bad server to potentially crash clients upon certain expectations.
2021-04-24Add: [Network] Validate the client name server side, so no clients with ↵rubidium42
invalid names can actually join
2021-04-24Change: [Network] Prevent invalid client names being sent to the server when ↵rubidium42
changing it using the console/settings
2021-04-24Feature: [Network] Ensure players fill in a name instead of defaulting to ↵rubidium42
"Player"
2021-04-24Add: String functionality to trim spaces from C-style stringsrubidium42
2021-04-24Codechange: [Network] Introduce function to validate the client namerubidium42
2021-04-23Update: Translations from eintstranslators
spanish (mexican): 1 change by absay english (us): 1 change by 2TallTyler
2021-04-23Add: Hindi translation.frosch
2021-04-23Change: move all 'unstable' language into 'stable'.frosch
2021-04-23Update: Translations from eintstranslators
dutch: 6 changes by Afoklala
2021-04-22Feature: Per-group wagon removal flag.peter1138
2021-04-22Codechange: Replace CMD_SET_GROUP_REPLACE_PROTECTION with generic ↵peter1138
CMD_SET_GROUP_FLAG.
2021-04-22Codechange: Replace Group::replace_protection with Group::flagspeter1138
2021-04-22Change: treat languages as finished, if translations are 75% completed.frosch
Unfinished translations are not auto-picked from the locale. In release builds, unfinished translations are not offered in the GUI. Unfinished translations are available in non-release builds, or by editing openttd.cfg.
2021-04-22Add: show completion progress of languages in the language dropdown for ↵frosch
non-release builds.
2021-04-22Change: [Win32] Limit the OpenGL video driver to OpenGL 3.2 or newer on Windows.Michael Lutz
2021-04-22Codechange: [Win32] Try getting an OpenGL 4.5 context first before aiming at ↵Michael Lutz
3.2.
2021-04-22Codechange: Scale rating minigraphs on station window list. (#9075)PeterN
Minigraphs did not adjust size to accomodate large text, either by font size or font zoom, leading to cropped labels. Minigraphs and spacing are now scaled by font zoom, as this seems to behave better than gui zoom in this instance.
2021-04-22Codechange: Use alignment feature in company finances window.Peter Nelson
2021-04-22Codechange: Replace face window custom drawing with new widget features.Peter Nelson
2021-04-22Codechange: Use new widget features on chat message box.Peter Nelson
2021-04-22Codechange: Add widget text colour override property.Peter Nelson
2021-04-22Codechange: Add internal widget alignment property, along with widget part.Peter Nelson
2021-04-21Cleanup: Remove unnecessary parameter of GetScrolledRowFromWidget()Peter Nelson
Line height defaults to the resize height of the relevant widget, which is set in all cases. Therefore it is not necessary to specify this value every time. Additionally fixes scrolled padding for the framerate window.
2021-04-21Fix: [OpenGL] Check maximum supported texture size against screen resolution.Michael Lutz
2021-04-21Cleanup: Replace single-use Pair struct with std::pair.Peter Nelson
This struct is defined in geometry_type but not used by any geometry-related code, only for subsidy code where both parameters are cast from int to NewsReferenceType.
2021-04-21Codechange: merge duplicated logic to scroll in lists by key into a single ↵Rubidium
function
2021-04-21Update: Translations from eintstranslators
spanish (mexican): 2 changes by absay
2021-04-20Fix: [CMake] Auto-fill version details in rev.cpp and ottres.rc (#9066)Loïc Guilloux
2021-04-20Update: Translations from eintstranslators
2021-04-20Doc: server name doesn't need to be advertised to be validPatric Stout
Strictly seen the comment is true, as it says 'e.g.', but it is misleading. The server name is just that: the name of the server as configured. No need to mention advertising.
2021-04-20Codechange: remove always-empty "address" from NetworkContentSocketHandlerPatric Stout
When ever you saw this debug lines (which you never should), they showed an empty address. It is also not very useful to have, as it always points to a known server anyway.
2021-04-20Codechange: split ParseConnectionString into two functionsPatric Stout
One also looks for a company, the other doesn't. There were more uses of the latter than the first, leaving very weird code all over the place.
2021-04-20Remove: "language" field from server/clientPatric Stout
The original idea was that people could find a server they could talk in their native language on. This isn't really used in that way. There are several reasons for removing this: - the client also sends his "language" to the server, but nothing is doing anything with this. - flags are a bad way to represent languages, and over the years we had several (rightfully) complaints about this. - most servers have their language set to "All", and prefix the servername with the language it is about. This is a much more efficient way to do the same. All in all, this feature should go back to the drawing board. Maybe it could work in another form, but this form is not it.
2021-04-20Remove: "map_name" from server announcements / listingPatric Stout
The idea back in the days was nice, but it never resulted in anything useful. Most servers either read "(loaded game)" or "Random Map", neither being useful. It was meant for heightmaps, so you could find a server that was using a specific one .. but there are many things wrong with that idea. Mostly, servers tend to save and load savegames from time to time, after which the original heightmap used was lost. All in all, removing map_name all together is just better.
2021-04-19Update: Translations from eintstranslators
chinese (simplified): 52 changes by clzls
2021-04-18Update: Translations from eintstranslators
swedish: 3 changes by DonaldDuck313 spanish: 39 changes by MontyMontana
2021-04-17Fix: Do not unlock railtypes when enabling wagons with GameScriptdP
2021-04-17Fix #6322: [Script] Try to let the script die when no memory can be ↵Rubidium
allocated instead of crashing the whole game
2021-04-17Change: [Script] Let Script_FatalError use std::string instead of const char *Rubidium
2021-04-17Fix #9042: Make multiplayer server list height auto-fill window.Peter Nelson
#9042 did not fix all combinations of scaling options. This additional change makes the server list automatically fill available height.