Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-05-15 | Change: Use gender-neutral pronouns | rubidium42 | |
2021-05-15 | Fix: empty undocumented branches | rubidium42 | |
2021-05-15 | Fix: comparison of narrow type to wide type in loop (potential for infinite ↵ | Rubidium | |
loops) | |||
2021-05-15 | Fix: [Network] Check on CIDR for netmask check considered everything valid | Rubidium | |
2021-05-15 | Codechange: comparison result is always the same due to earlier check | Rubidium | |
Practically the length of the handlers not being equal to the number of features is the problem as it means something was forgotten when adding a new feature, so static assert to that and let the existing check on the feature number take care of invalid data from the NewGRFs. | |||
2021-05-14 | Codechange: use thread safe time functions | rubidium42 | |
Functions like localtime, gmtime and asctime are not thread safe as they (might) reuse the same buffer. So use the safer _s/_r variant for localtime and gmtime, and use strftime in favour of asctime. | |||
2021-05-14 | Codechange: [Network] Pass passwords as std::string to the network code | rubidium42 | |
2021-05-14 | Codechange: [Network] Use std::string for the internal handling of ↵ | rubidium42 | |
admin/rcon passwords | |||
2021-05-14 | Codechange: [Network] Use std::string for the internal handling of server ↵ | rubidium42 | |
passwords | |||
2021-05-14 | Codechange: [Network] Use std::string for the internal handling of company ↵ | rubidium42 | |
passwords | |||
2021-05-14 | Codechange: [Network] Make company state password std::string | rubidium42 | |
2021-05-13 | Feature: Define refittability of default vehicles using cargo classes. | frosch | |
This ensures that default vehicles can transport any NewGRF defined cargos, albeit with weird graphics and vehicle names. This also changes the refittability of default vehicles with default industries. | |||
2021-05-13 | Fix: Resolve cargo-types of default vehicles via their cargo label. | frosch | |
Default vehicles now behave as if they had a cargo translation table. This fixes default vehicles carrying seemingly random cargos, if NewGRF industry sets are present. This behavior is disabled, when a NewGRF touches any of the cargo-type or refitting properties. In that case it's up to the NewGRF to define its own cargo translation table. | |||
2021-05-13 | Codechange: add constant for number of original cargoes. | frosch | |
2021-05-13 | Codechange: clean up C-string support from settings | rubidium42 | |
2021-05-13 | Codechange: move script settings to std::string | rubidium42 | |
2021-05-13 | Codechange: move misc settings to std::string | rubidium42 | |
2021-05-13 | Codechange: move font settings to std::string | rubidium42 | |
2021-05-13 | Codechange: move currency settings to std::string | rubidium42 | |
2021-05-13 | Codechange: move locale settings to std::string | rubidium42 | |
2021-05-13 | Codechange: move client name in settings to std::string | rubidium42 | |
2021-05-13 | Codechange: move server name/id in settings to std::string | rubidium42 | |
2021-05-13 | Codechange: move hostnames in settings to std::string | rubidium42 | |
2021-05-13 | Codechange: move passwords in settings to std::string | rubidium42 | |
2021-05-13 | Change: further support for std::string in settings | rubidium42 | |
2021-05-13 | Update: Translations from eints | translators | |
french: 2 changes by glx22 | |||
2021-05-13 | Codechange: [Network] split CloseSocket and CloseConnection more clearly (#9261) | Patric Stout | |
* Codechange: [Network] split CloseSocket and CloseConnection more clearly - CloseSocket now closes the actual OS socket. - CloseConnection frees up the resources to just before CloseSocket. - dtors call CloseSocket / CloseConnection where needed. | |||
2021-05-13 | Fix: Correct name of Golub-Dobrzyn | Paweł Świątkowski | |
2021-05-13 | Fix: Replace Susz with Leszno | Paweł Świątkowski | |
Susz is masculine, not neuter, so it should result in "Susz Mazowiecki", "Susz Morski", and not "Susz Mazowieckie" or "Susz Morskie". However, because order of the names whould not be changed, it was replaced with Leszno, which is neuter. | |||
2021-05-13 | Codechange: remove pointless close call due to resolving virtual functions ↵ | Rubidium | |
statically in destructors In the destructors of many of the network related classes Close() is called, just like the top class in that hierarchy. However, due to virtual functions getting resolved statically in the destructor it would always call the empty Close() of the top class. Document the other cases where a virtual call is resolved statically. | |||
2021-05-13 | Codechange: make explicit that virtual functions in a con/destructor are ↵ | Rubidium | |
resolved statically This as during construction the sub class has not been initialized yet, and during destruction the sub class has already been destroyed, so the overriding virtual function would be accessing uninitialized data. | |||
2021-05-13 | Fix #9255: [Network] TCPConnecter crashes when hostname not found (#9259) | Patric Stout | |
2021-05-13 | Codechange: Replace TILE_AREA_LOOP with range-based for loops | glx22 | |
2021-05-12 | Fix #9256, 12e43c697d2: invalid read after free. (#9258) | frosch | |
This also changes ScriptEventVehicleAutoReplaced when replacing wagons: The event is now only spawned, if the head engine changes, so only if the VehicleID of the consist changes. Previously replacing wagons spawned an event with OldVehicleID==NewVehicleID. | |||
2021-05-12 | Codechange: make Window destruction not rely on undefined behavior. | frosch | |
2021-05-12 | Codechange: use IterateFromBack/Front only if the order is important. | frosch | |
Use Iterate if the order does not matter. | |||
2021-05-12 | Codechange: use iterators instead of 'subranges' when iterating from a ↵ | frosch | |
specific window. Using iterators makes it easier to include or exclude the start window in the iteration. | |||
2021-05-12 | Codechange: remove excessive templating in favour of a single const_cast. | frosch | |
The const_cast will be removed again in a later commit. | |||
2021-05-12 | Cleanup: remove unneeded labels and gotos. | frosch | |
The window list supports deletion of arbitrary windows, while iterating over it. | |||
2021-05-12 | Fix #9186: Fix incorrect bounding box height causing station sprite glitch. ↵ | PeterN | |
(#9187) Increased height of small station building bounding box to cover the build rather than just the platform. | |||
2021-05-12 | Update: Translations from eints | translators | |
romanian: 38 changes by kneekoo slovak: 19 changes by FuryPapaya catalan: 1 change by J0anJosep turkish: 191 changes by Anceph | |||
2021-05-12 | Fix #9242: Tree tick handler did not scale by map size. (#9246) | PeterN | |
This means that random tree generation density is higher on small maps and lower on large maps. This difference is enough to make the Lumber Mill impractical to use on large maps. This change skips ticks on maps smaller than 256x256 and increases iterations or shortens the interval on maps larger than 256x256. | |||
2021-05-12 | Fix #9063: Caption of news window incorrectly aligned. (#9252) | PeterN | |
2021-05-12 | Change: reworked the debug levels for network facility (#9251) | Patric Stout | |
It now follows very simple rules: 0 - Fatal, user should know about this 1 - Error, but we are recovering 2 - Warning, wrong but okay if you don't know 3 - Info, information you might care about 4 - 5 - Debug #1 - High level debug messages 6 - Debug #2 - Low level debug messages 7 - Trace information | |||
2021-05-12 | Fix 91b8ce07: dedicated servers could no longer create screenshots (#9232) | Patric Stout | |
Although most commands are not useful on a dedicated server, screenshot commands should be dequeued. | |||
2021-05-12 | Fix #9202: Invalid test for unset NewGRF override mapping. (#9226) | PeterN | |
2021-05-11 | Update: Translations from eints | translators | |
korean: 1 change by telk5093 slovak: 149 changes by ApplePie420 | |||
2021-05-11 | Fix: [Network] mark server as offline when no longer reachable (#9244) | Patric Stout | |
2021-05-11 | Fix #9243: [Network] For a dedicated server use a fallback client and server ↵ | rubidium42 | |
name Also warn when the client or server name has not been set and provide pointers on how to set them | |||
2021-05-11 | Fix: [Network] don't rebuild the host-list during iterating the list (#9240) | Patric Stout | |
Additionally, only rebuild it when we added a new manual server, as otherwise it is a noop anyway. |