Skip to content

1.24.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 26 May 12:19
· 45 commits to main since this release
1.24.0
eb6587a

Added

  • New TCODImage::getSize() overload which returns a value instead of taking output references.
  • New TCODColor::genMap overload which supports constexpr.
  • TCODZip has new get and put functions with their supported types as overloads.
    This includes some types from the new API and C++ types such as std::optional<std::string> as an alternative to getting a char pointer.
  • TCODZip can now load and save paths using <filesystem> types.
  • Added tcod::ImagePtr.
  • Added functions to manually set context pixel-to-tile conversions in cases where it can't be set automatically.
  • New overloads to TCODBsp which can take function callbacks directly.

Changes

  • TCODRandom is now a movable, non-copyable object.
  • TCODConsole can now be default constructed.

Fixed

  • Constructing TCODConsole from tcod::ConsolePtr no longer causes a bad free.
  • Memory leak when loading images with TCODZip.
  • Memory leak with tileset atlases belonging to contexts.