Turn on cleartasks tool in the build system

develop
Petr Mrázek 2011-04-17 00:53:05 +02:00
parent b0cb59a3f2
commit 8c79bc597a
2 changed files with 3 additions and 3 deletions

@ -63,7 +63,7 @@ DFHACK_TOOL(dfliquids liquids.cpp)
# Solves the problem of unusable items after reclaim by clearing the 'in_job' bit of all items. # Solves the problem of unusable items after reclaim by clearing the 'in_job' bit of all items.
# Original author: Quietust # Original author: Quietust
#DFHACK_TOOL(dfcleartask cleartask.cpp) DFHACK_TOOL(dfcleartask cleartask.cpp)
# position - check the DF window and cursor parameters # position - check the DF window and cursor parameters
DFHACK_TOOL(dfposition position.cpp) DFHACK_TOOL(dfposition position.cpp)

@ -55,9 +55,9 @@ int main ()
{ {
DFHack::t_itemflags flags; DFHack::t_itemflags flags;
flags.whole = p->readDWord(p_items[i] + 0x0C); flags.whole = p->readDWord(p_items[i] + 0x0C);
if (flags.bits.in_job) if (flags.in_job)
{ {
flags.bits.in_job = 0; flags.in_job = 0;
p->writeDWord(p_items[i] + 0x0C, flags.whole); p->writeDWord(p_items[i] + 0x0C, flags.whole);
numtasked++; numtasked++;
} }