Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-12-16 | Codechange: Un-bitstuff vehicle/engine commands. | Michael Lutz | |
2021-12-16 | Codechange: Un-bitstuff commands taking a ClientID (i.e. CMD_CLIENT_ID). | Michael Lutz | |
2021-12-16 | Codechange: Template DoCommandP to automagically reflect the parameters of ↵ | Michael Lutz | |
the command proc. When finished, this will allow each command handler to take individually different parameters, obliviating the need for bit-packing. | |||
2021-12-16 | Codechange: Template DoCommand to automagically reflect the parameters of ↵ | Michael Lutz | |
the command proc. When finished, this will allow each command handler to take individually different parameters, obliviating the need for bit-packing. | |||
2021-12-16 | Codechange: Move flags in CommandProc in front of the command arguments. | Michael Lutz | |
2021-12-16 | Codechange: Let the compile generate the master command table out of ↵ | Michael Lutz | |
templated command traits. This is using a non-intrusive type-traits like templated system, which allows compile-time validation that the command table and the command enum match up. | |||
2021-12-16 | Codechange: Untangle command code, flags and error string for DoCommand*. | Michael Lutz | |
2021-12-16 | Codechange: Move command arguments to the back of the networked command ↵ | Michael Lutz | |
function calls. | |||
2021-12-16 | Codechange: Move command arguments to the back of the DoCommand function call. | Michael Lutz | |
2021-08-02 | Fix #9440: negative cargo payments not being handled right | Rubidium | |
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-07-09 | Codechange: Remove FOR_EACH_SET_CARGO_ID | glx22 | |
2021-07-01 | Codechange: use the constructor for CompanyNewsItem to fill the data instead ↵ | rubidium42 | |
of a separate function | |||
2021-07-01 | Codechange: create a type for the "free_data" of NewsItems and (de)allocate ↵ | rubidium42 | |
it with new and delete | |||
2021-06-11 | Fix #9348, 4d74e51: don't try to sell shares of spectators (#9349) | Patric Stout | |
"new_owner" can be INVALID_OWNER, and as INVALID_OWNER == COMPANY_SPECTATORS, we could end up trying to sell shares of nobody. | |||
2021-05-29 | Codechange: Rename window related DeleteXXX to match new behaviour | glx22 | |
2021-05-29 | Codechange: move from C-string to std::string for DoCommand | rubidium42 | |
2021-05-29 | Fix #9281: acquire a company uses special bookkeeping to make you rich (#9300) | Patric Stout | |
When you buy-out a company, you got your shares back. This is based on company-value, which includes values for the vehicles etc. In other words, you not only got the vehicles, but you also got paid to get them back. Additionally, you also got the loan of the company, but not the money for the loan (as that is subtracted from the company-value). Solve this by changing the rules of a buy-out: don't sell your shares, get the loan AND the balance and get the infrastructure. | |||
2021-05-15 | Change: Use gender-neutral pronouns | rubidium42 | |
2021-05-08 | Change: Use gender-neutral pronouns in console command messages (and ↵ | William Davis | |
comments) (#9203) | |||
2021-04-29 | Codechange: Replace FOR_ALL_CARGOSPECS with range-based for loops | glx22 | |
2021-01-22 | Change: Apply some consistency to singleplayer related comments | glx22 | |
2021-01-08 | Codechange: Remove min/max functions in favour of STL variants (#8502) | Charles Pigott | |
2020-12-27 | Codechange: Replace assert_compile macro with static_assert | Charles Pigott | |
2020-12-25 | Change: Always apply inflation from 1920 to 2090, no matter the game start ↵ | Michael Lutz | |
year. (#7589) | |||
2020-12-22 | Feature: Set exclusive access to industry from GS (#8115) | Pavel Stupnikov | |
2020-12-16 | Change: extend the allowed range for max loan setting (#8386) | Pavel Stupnikov | |
2020-01-28 | Change: Algorithm for transfer feeder payments | Jonathan G Rennison | |
The original algorithm pays intermediate legs in feeder systems based on the start and end stations of that particular leg. This tends to result in large negative payments on the final leg for journeys with many feeder legs, as the overall feeder payment increases with the number of legs, and the final leg is penalised for discrepancies between the previous leg payments and the actual payment for delivery from the source to the destination. The feeder share setting is a partial mitigation, however it is difficult to tune as a suitable value depends on the number of legs and the network topology, which are often not the same for all vehicles. The new incremental algorithm pays the cargo payment from the source station to the end station of the current leg, minus any previous transfer feeder payments for each leg. This prevents unbounded increase of feeder payments and therefore avoids the issue of excessive negative payments on the final leg. Feeder payments may be negative, e.g. in the case of poorly performing or highly indirect legs. This is better than penalising the final leg. This mode reduces the need to tune the feeder shares setting to the current network. The feeder share setting applies in the existing way. | |||
2019-12-23 | Fix #7430: when train visits station, only reset time_since_pickup if has ↵ | Mingwei Samuel | |
room to load | |||
2019-12-21 | Codechange: Replace FOR_ALL_TOWNS with range-based for loops | glx | |
2019-12-21 | Codechange: Replace FOR_ALL_SUBSIDIES with range-based for loops | glx | |
2019-12-21 | Codechange: Replace story related FOR_ALL with range-based for loops | glx | |
2019-12-21 | Codechange: Replace FOR_ALL_SIGNS with range-based for loops | glx | |
2019-12-21 | Codechange: Replace vehicle related FOR_ALL with range-based for loops | glx | |
2019-12-21 | Codechange: Replace FOR_ALL_GROUPS with range-based for loops | glx | |
2019-12-21 | Codechange: Replace FOR_ALL_GOALS with range-based for loops | glx | |
2019-12-21 | Codechange: Replace station related FOR_ALL with range-based for loops | glx | |
2019-12-21 | Codechange: Replace FOR_ALL_COMPANIES with range-based for loops | glx | |
2019-11-10 | Cleanup: Removed SVN headers | S. D. Cloudt | |
2019-10-19 | Feature: Configure minimum share trading years | Jack Baron | |
2019-09-29 | Fix: Some typos found using codespell | JMcKiern | |
2019-05-01 | Feature: Add NotRoadTypes (NRT) | peter1138 | |
2019-04-29 | Codechange: Remove Company/OwnerByte types | Charles Pigott | |
2019-04-11 | Fix #7491: Send company update admin message when bankruptcy counter changes. | peter1138 | |
2019-04-10 | Codechange: Use null pointer literal instead of the NULL macro | Henry Wilson | |
2019-04-05 | Fix #7439: don't overwrite CompanyRemoveReason with ClientID (#7465) | glx22 | |
2019-03-26 | Codechange: Removed SmallVector completely | Henry Wilson | |
2019-03-26 | Codechange: Replaced SmallVector::[Begin|End]() with std alternatives | Henry Wilson | |
2019-03-26 | Codechange: Replaced SmallVector::Include() with include() | Henry Wilson | |
2019-03-26 | Codechange: Replace SmallVector::Clear() with std::vector::clear() | Henry Wilson | |
2019-03-20 | Remove: ENABLE_NETWORK switch | Patric Stout | |
This switch has been a pain for years. Often disabling broke compilation, as no developer compiles OpenTTD without, neither do any of our official binaries. Additionaly, it has grown so hugely in our codebase, that it clearly shows that the current solution was a poor one. 350+ instances of "#ifdef ENABLE_NETWORK" were in the code, of which only ~30 in the networking code itself. The rest were all around the code to do the right thing, from GUI to NewGRF. A more proper solution would be to stub all the functions, and make sure the rest of the code can simply assume network is available. This was also partially done, and most variables were correct if networking was disabled. Despite that, often the #ifdefs were still used. With the recent removal of DOS, there is also no platform anymore which we support where networking isn't working out-of-the-box. All in all, it is time to remove the ENABLE_NETWORK switch. No replacement is planned, but if you feel we really need this option, we welcome any Pull Request which implements this in a way that doesn't crawl through the code like this diff shows we used to. |