Skip to content

Commit 448404a

Browse files
committed
Fix buildingplan stuff on Windows.
1 parent 1519d8e commit 448404a

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

plugins/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ if (BUILD_SUPPORTED)
9393
DFHACK_PLUGIN(autotrade autotrade.cpp)
9494
DFHACK_PLUGIN(burrows burrows.cpp LINK_LIBRARIES lua)
9595
DFHACK_PLUGIN(building-hacks building-hacks.cpp LINK_LIBRARIES lua)
96-
#DFHACK_PLUGIN(buildingplan buildingplan-lib.cpp buildingplan.cpp)
96+
DFHACK_PLUGIN(buildingplan buildingplan-lib.cpp buildingplan.cpp)
9797
DFHACK_PLUGIN(catsplosion catsplosion.cpp)
9898
DFHACK_PLUGIN(changeitem changeitem.cpp)
9999
DFHACK_PLUGIN(changelayer changelayer.cpp)
@@ -122,7 +122,7 @@ if (BUILD_SUPPORTED)
122122
DFHACK_PLUGIN(flows flows.cpp)
123123
DFHACK_PLUGIN(follow follow.cpp)
124124
DFHACK_PLUGIN(forceequip forceequip.cpp)
125-
#DFHACK_PLUGIN(fortplan buildingplan-lib.cpp fortplan.cpp)
125+
DFHACK_PLUGIN(fortplan buildingplan-lib.cpp fortplan.cpp)
126126
DFHACK_PLUGIN(getplants getplants.cpp)
127127
DFHACK_PLUGIN(hotkeys hotkeys.cpp)
128128
DFHACK_PLUGIN(infiniteSky infiniteSky.cpp)

plugins/buildingplan-lib.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include "buildingplan-lib.h"
22

33
#define PLUGIN_VERSION 0.00
4-
static void debug(const string &msg)
4+
void debug(const string &msg)
55
{
66
if (!show_debugging)
77
return;
@@ -10,6 +10,8 @@ static void debug(const string &msg)
1010
out << "DEBUG (" << PLUGIN_VERSION << "): " << msg << endl;
1111
}
1212

13+
void enable_quickfort_fn(pair<const df::building_type, bool>& pair) { pair.second = true; }
14+
1315
/*
1416
* Material Choice Screen
1517
*/

plugins/buildingplan-lib.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ static MaterialInfo &material_info_identity_fn(MaterialInfo &m);
9797

9898
static map<df::building_type, bool> planmode_enabled, saved_planmodes;
9999

100-
static void enable_quickfort_fn(pair<const df::building_type, bool>& pair);
100+
void enable_quickfort_fn(pair<const df::building_type, bool>& pair);
101101

102-
static void debug(const std::string &msg);
102+
void debug(const std::string &msg);
103103
static std::string material_to_string_fn(MaterialInfo m);
104104

105-
static bool show_debugging = true;
105+
static bool show_debugging = false;
106106
static bool show_help = false;
107107

108108
struct ItemFilter

plugins/buildingplan.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ DFhackCExport command_result plugin_shutdown ( color_ostream &out )
1111
return CR_OK;
1212
}
1313

14-
static void enable_quickfort_fn(pair<const df::building_type, bool>& pair) { pair.second = true; }
1514

1615
static bool is_planmode_enabled(df::building_type type)
1716
{

0 commit comments

Comments
 (0)