Skip to content
Permalink
Branch: master
Commits on Apr 15, 2019
  1. Codechange: No need for AutoFreePtr if there's std::unique_ptr.

    michicc authored and LordAro committed Apr 14, 2019
  2. Codechange: Replace SmallStackSafeStackAlloc with std::array.

    michicc authored and LordAro committed Apr 14, 2019
    The only port that ever used it to make heap allocations instead of stack ones was the NDS port, which got thrown out some time ago.
Commits on Apr 9, 2019
  1. Remove: AutoFreeSmallVector.

    michicc committed Apr 2, 2019
    The last use was for storing a list of memory blocks. As the way these lists are accessed is very
    specific, it is easier to just write an explicit destructor instead of trying to exactly match the behaviour.
  2. Codechange: If something is a vector of strings, use a vector of stri…

    michicc committed Apr 2, 2019
    …ngs instead of an AutoFreeSmallVector.
  3. Codechange: Switch DropDownList to directly use std::vector, thus mak…

    michicc committed Apr 2, 2019
    …ing AutoDeleteSmallVector obsolete.
    
    DropDownListItem are strongly managed using std::unique_ptr to ensure leak-free handling. Appropriate use
    of move-semantics make intent a lot clearer than parameter comments and allows the compiler to generate
    copy-free code for most situations.
  4. Codechange: Store text layout runs directly as values in a std::vecto…

    michicc committed Apr 2, 2019
    …r instead of heap allocated.
    
    This reduces memory allocations and heap fragmentation.
  5. Fix: Don't crash if reading a GS string file from disk produces an er…

    michicc committed Apr 2, 2019
    …ror.
    
    The raw_strings vector may not include NULLs as no consumer can deal with it.
Commits on Apr 6, 2019
  1. Codechange: C++11 STL has a function for getting the number of CPU co…

    michicc committed Mar 17, 2019
    …res.
  2. Codechange: Replace custom thread code with C++11 thread objects.

    michicc committed Mar 17, 2019
    We assume a conforming C++11 compiler environment that has a valid <thread>-header.
    Failure to run a real thread is handled gracefully.
  3. Codechange: Replace custom mutex code with C++11 mutex'es.

    michicc committed Mar 10, 2019
    A conforming compiler with a valid <mutex>-header is expected.
    Most parts of the code assume that locking a mutex will never fail unexpectedly,
    which is generally true on all common platforms that don't just pretend to
    be C++11. The use of condition variables in driver code is checked.
Commits on Mar 28, 2019
  1. Fix #7165: Const overload SmallMap::Contains(key) compared wrong types.

    michicc authored and LordAro committed Mar 27, 2019
    Const and non-const Find() have different return types.
Commits on Mar 21, 2019
  1. Fix #7391, 9b99b95: Don't invalidate go to depot orders of non-aircra…

    michicc authored and LordAro committed Mar 20, 2019
    …ft when invalidating hangar orders that happen to share IDs.
    
    This was caused because hangars are referred to by station ID, which is not unique with respect to depot IDs.
Commits on Mar 10, 2019
  1. Feature: Railtype flags to allow/disallow 90 degree curves. (#7352)

    michicc authored and PeterN committed Mar 10, 2019
Commits on Feb 24, 2019
  1. Update: Changelog for 1.9.0-beta3 and prepare for release.

    michicc committed Feb 24, 2019
  2. Change: [AzurePipelines] Use a minimum OSX version of 10.9 during bui…

    michicc committed Feb 24, 2019
    …lding.
    
    OpenTTD sources are still written in a way to work down to OSX 10.4 or so, as long as you can obtain a C++11 capable compiler. 10.9 is the minimal useful C++11 target using only Apple stuff out-of-the-box.
Commits on Feb 21, 2019
  1. Fix #7159, e934f09: Waiting time at red one-way signals was too short.

    michicc authored and LordAro committed Feb 19, 2019
    This is not an exact fix as previously, the wait time was speed/acceleration dependant. This simple fix ignores that and just makes the 'days' from the settings comment to be actually days.
Commits on Dec 8, 2018
  1. Add: [OSX] Text layout using the native CoreText API.

    michicc committed Oct 28, 2018
    By default, the native API will be used instead of ICU, but if ICU is
    forced in using configure, it will take precedence.
Commits on Dec 1, 2018
  1. Fix: [Win32] Align sprite glyphs to the font baseline when using Unis…

    michicc committed Nov 25, 2018
    …cribe text layout.
Commits on Sep 2, 2018
  1. Feature: [NewGRF] Increase size of persistent storage to 256.

    michicc committed Aug 13, 2018
Commits on Jul 22, 2018
  1. Add: GDPR notice to contributing guide and a matching pull request te…

    michicc committed Jun 17, 2018
    …mplate.
    
    Contents is adapted from the https://github.com/rsyslog/rsyslog project, which has mainly European contributors.
Commits on Jun 27, 2018
  1. Fix: [Win32] Garbage in OS window title if branch name was too long.

    michicc committed Jun 24, 2018
    This was caused by a missing \0-character on reaching the buffer limit.
Commits on Jun 17, 2018
  1. Fix: Scale default FreeType font size selection by UI zoom level.

    michicc committed Jun 16, 2018
Commits on Jun 16, 2018
  1. Fix 768a31b: When cascading to another text layouter, clear the old f…

    michicc committed Jun 15, 2018
    …ont run state left over from the previous (failed) layout attempt.
Commits on Jun 6, 2018
  1. Add: [Win32] Uniscribe configure options for MinGW targets.

    michicc committed May 27, 2018
  2. Change: [Win32] Use Uniscribe instead of ICU for text caret handling.

    michicc committed May 26, 2018
    This removes the need for the ICU lib on Windows.
Older
You can’t perform that action at this time.