Commit Graph

1697 Commits (8fb26612c0dadfa28fd8ee33cb2ec3d34ffa5d0a)

Author SHA1 Message Date
Patric Stout 7824ae5b59 Fix #12196: disable "select upgrade" button when filtering 4 months ago
Patric Stout b307541099 Fix #12196: always show selected content, even when filtering 4 months ago
Peter Nelson d4f0f0e2c5
Codechange: Use `GetVisibleRangeIterators()` in more places. (#12190)
This replaces more first/last index calculation, along with indexed array/vector access, with iterator access instead.
4 months ago
Peter Nelson 912d7bd80e Codechange: Give ColourShade values names instead of numbers. 4 months ago
Peter Nelson ae3390fe48 Codechange: Add ColourShade enum. 4 months ago
Peter Nelson 0463d4c198 Codechange: Remove direct access to _colour_gradient.
Access is now through GetColourGradient, which ensures parameters are in range.
4 months ago
Jonathan G Rennison c637d376d0
Fix cb588d8d: Ordering of command per tick limit and pause mode filtering (#12126)
The command per tick limit should be applied after the pause mode filter
4 months ago
Damian Laczak 49c3215751 Fix #10983: [AdminPort] Correct order of messages 4 months ago
Patric Stout 15c14a896f
Fix: survey-time seconds for clients was calculated wrong (#12078) 5 months ago
Patric Stout fa6f270f23
Codefix 36e1b32: remove left-over debug statement (#12068) 5 months ago
Patric Stout 5b3bfe4c4c
Fix fdfcb09: for content service, fallback to TCP downloads when HTTP stalls (#12056) 5 months ago
Patric Stout d02b1547f6
Remove: setting "no_http_content_downloads" (#12058)
As we now use HTTPS, it is very likely this will work on most systems.
For systems that do have HTTPS blocked, it will fail instantly,
and it will fallback to TCP anyway. That makes this setting no longer
very useful.
5 months ago
Rubidium 3534214dfc Codechange: use reference instead of pointer for CommandPacket 5 months ago
Rubidium cb588d8d3f Codechange: use std::vector for the incoming command queue 5 months ago
Rubidium b3aa8a9c35 Codechange: use std::vector for the outgoing command "queues" 5 months ago
Rubidium 63708609fb Codechange: define the size of the PacketType enumerations 5 months ago
Rubidium 6f77c2eaa2 Codechange: use size_t for the MTU limits and remove default parameter 5 months ago
Rubidium 72a44b0df6 Codechange: use references for handling received TCP packets 5 months ago
Rubidium 794f12dc24 Codechange: cascade through SendNeedGame/CompanyPassword functions, instead of duplicating logic for determining whether to call these functions 5 months ago
Rubidium 8add0bf8ec Codechange: use references for game info serialization 5 months ago
Rubidium 84623d2123 Codechange: use references for UDP packets 5 months ago
Rubidium 031a9d4e26 Codechange: use std::unique_ptr for the Packets created to send via TCP 5 months ago
Rubidium 36e1b32ccf Codechange: use std::deque of std::unique_ptr to queue packets 5 months ago
Rubidium c77a45ed86 Codechange: use std::unique_ptr for receiving network packets 5 months ago
Rubidium 4b372b6050 Codechange: use std::shared_ptr to manage saveload filters instead of manually trying to avoid double frees 5 months ago
frosch b1718478c8 Codechange: Replace old non-standard attributes with C++17/20 standard attributes. 5 months ago
Loïc Guilloux 0e738dda88
Fix #11948: [Win32] Convert error messages to utf8 (#11951) 5 months ago
Patric Stout 363e251a10
Change: make -dnet=9 give traces of the details of the network protocol (#11931) 5 months ago
Patric Stout 3e6ed6f44a
Fix #9697: don't extend the Online Players window too wide on opening (#11936) 5 months ago
Jonathan G Rennison 1df7b21ee3
Fix #11889: ConstructWindow not called from SurveyResultTextfileWindow constructor (#11903) 5 months ago
Peter Nelson fef0bfcfd3
Fix: TextfileWindow called virtual methods before constructor completed. (#11889)
SetStringParameters() was called during widget tree init in the constructor.

Calls within a constructor cannot call the derived classes methods. This would result in invalid data being passed to the string system, which could then crash.
5 months ago
Patric Stout 89520f5665
Add: show in multiplayer the amount of hours a game has been unpaused (#11886) 5 months ago
Patric Stout 2bbc95cac3
Fix: update server as offline when unexpected disconnect during refresh (#11891) 5 months ago
Tyler Trahan 28716548d2
Feature: Setting to automatically restart server based on hours played (#11142) 5 months ago
Patric Stout d3b2a576de
Feature: Plugin framework for Social Integration with Steam, Discord, GOG, etc (#11628) 5 months ago
Tyler Trahan 735abfe111
Codechange: Split dates and timers into Economy and Calendar time (#10700) 5 months ago
Rubidium 2d77f09a81 Codechange: use std::shared_ptr for vector of TCPConnecters 5 months ago
Rubidium 2d77cf9c80 Codechange: replace StrStartsWith/StrEndsWith with starts_with and ends_with 5 months ago
Rubidium aa5ba5bd7f Codechange: allow certain enumeration to be added
Otherwise C++20 doesn't like it.
5 months ago
Peter Nelson 7737aa6640 Codechange: Make all NWidgetPart arrays constexpr.
This ensures that the arrays are not created at runtime and prevents using non-constexpr values.
5 months ago
Patric Stout 6550682b49
Codechange: minor bits and pieces related to fmt::format() (#11806)
- Don't make run-time formatting what can be done compile-time.
- Be explicit about run-time formatting.
- Fix datetime printing.
5 months ago
Patric Stout 0b7410d979
Codechange: compile-time validate the string format of IConsolePrint (#11804)
This means we can no longer use runtime picking what string to use.
5 months ago
Rubidium 564441e822 Remove: Debug redirect over network
It does not work for dedicated servers because upon starting the process to
resolve the address to redirect to gets killed. Also with all the async going
on in the network code, the debug redirection will start very late in the
process.
6 months ago
Loïc Guilloux 93ba6d6776
Fix: compilation without precompiled headers (#11770) 6 months ago
Rubidium 3a676a5af0 Codechange: replace static inline with static for non-class functions 6 months ago
Peter Nelson 7a5106042f
Codechange: Use CompanyMask and company group statistics for auto clean tests. (#11693)
This function does not need to know how many vehicles there are, only that there is at least one.
6 months ago
Patric Stout 7788b68bbe
Fix: don't unneededly block on transmitting survey on exit (#11687) 6 months ago
Patric Stout 28e2576589
Fix: race-condition when quitting the game with libcurl (#11688)
There could be a callback in _new_http_callbacks that is not
processed yet. All callbacks in _http_callbacks were cancelled,
but not the ones in _new_http_callbacks
6 months ago
Rubidium e3f49ee7a0 Codechange: coding style fixes 6 months ago
Jonathan G Rennison 0075364c89 Fix: curl_global_cleanup called before libcurl HTTP thread exited 6 months ago