Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .readthedocs.requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
sphinx==4.4.0
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
version: 2

build:
os: ubuntu-20.04
os: ubuntu-22.04
tools:
python: "3"

Expand Down
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ endif()

# set up versioning.
set(DF_VERSION "0.47.05")
set(DFHACK_RELEASE "r8")
set(DFHACK_RELEASE "r9")
set(DFHACK_PRERELEASE FALSE)

set(DFHACK_VERSION "${DF_VERSION}-${DFHACK_RELEASE}")
Expand Down Expand Up @@ -419,6 +419,9 @@ include_directories(depends/tthread)
include_directories(${ZLIB_INCLUDE_DIRS})
include_directories(depends/clsocket/src)
include_directories(depends/xlsxio/include)
# CMake 4 removed support for policy versions older than 3.5. Keep the
# bundled third-party projects buildable without modifying their submodules.
set(CMAKE_POLICY_VERSION_MINIMUM 3.5)
add_subdirectory(depends)

# Testing with CTest
Expand Down
5 changes: 5 additions & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ changelog.txt uses a syntax similar to RST, with a few special sequences:
## Removed
- ``fix-job-postings`` from the `workflow` plugin is now obsolete since affected savegames can no longer be loaded

# 0.47.05-r9

## Internals
- Fixed building with newer versions of CMake and GCC

# 0.47.05-r8

## New Plugins
Expand Down
6 changes: 3 additions & 3 deletions plugins/diggingInvaders/diggingInvaders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ void findAndAssignInvasionJob(color_ostream& out, void* tickTime) {
MapExtras::MapCache cache;

// clock_t t0 = clock();
clock_t totalEdgeTime = 0;
// clock_t totalEdgeTime = 0;
int32_t edgesExpanded = 0;
while(!fringe.empty()) {
if ( edgesPerTick > 0 && edgesExpanded++ >= edgesPerTick ) {
Expand Down Expand Up @@ -484,9 +484,9 @@ void findAndAssignInvasionJob(color_ostream& out, void* tickTime) {
}

cost_t myCost = costMap[pt];
clock_t edgeTime = clock();
// clock_t edgeTime = clock();
vector<Edge>* myEdges = getEdgeSet(out, pt, cache, xMax, yMax, zMax, abilities);
totalEdgeTime += (clock() - edgeTime);
// totalEdgeTime += (clock() - edgeTime);
for ( auto a = myEdges->begin(); a != myEdges->end(); a++ ) {
Edge &e = *a;
if ( e.p1 == df::coord() )
Expand Down
5 changes: 0 additions & 5 deletions plugins/remotefortressreader/remotefortressreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1578,7 +1578,6 @@ static command_result GetBlockList(color_ostream &stream, const BlockRequest *in

static command_result GetTiletypeList(color_ostream &stream, const EmptyMessage *in, TiletypeList *out)
{
int count = 0;
FOR_ENUM_ITEMS(tiletype, tt)
{
Tiletype * type = out->add_tiletype_list();
Expand All @@ -1592,7 +1591,6 @@ static command_result GetTiletypeList(color_ostream &stream, const EmptyMessage
type->set_material(TranslateMaterial(tileMaterial(tt)));
type->set_variant(TranslateVariant(tileVariant(tt)));
type->set_direction(tileDirection(tt).getStr());
count++;
}
return CR_OK;
}
Expand Down Expand Up @@ -1693,9 +1691,6 @@ static command_result GetUnitListInside(color_ostream &stream, const BlockReques
continue;
}

using df::global::cur_year;
using df::global::cur_year_tick;

send_unit->set_age(Units::getAge(unit, false));

ConvertDfColor(Units::getProfessionColor(unit), send_unit->mutable_profession_color());
Expand Down
2 changes: 2 additions & 0 deletions plugins/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,8 @@ class pets_search : public pets_search_base
return get_unit_description(element.unit);
}

using pets_search_base::should_check_input;

bool should_check_input()
{
return viewscreen->mode == T_mode::List;
Expand Down
Loading