diff --git a/features/DrawAllStates.cpp b/features/DrawAllStates.cpp index bcab548..9caf29d 100644 --- a/features/DrawAllStates.cpp +++ b/features/DrawAllStates.cpp @@ -15,7 +15,6 @@ namespace DrawAllStates { public: void init() override { State[name] = false; - Settings[name] = true; } void gameLoop() override { diff --git a/framework/ghidra.extensions.cpp b/framework/ghidra.extensions.cpp index b8995fb..c4f6a3f 100644 --- a/framework/ghidra.extensions.cpp +++ b/framework/ghidra.extensions.cpp @@ -88,14 +88,14 @@ namespace Ghidra { return { adjust.x + (double)this->pPath.pStaticPath->nPosX, adjust.y + (double)this->pPath.pStaticPath->nPosY }; } - return { 0, 0}; // ToDo; need to fix dynamic path as its wrong defined in ghidra + return { 0, 0 }; // ToDo; need to fix dynamic path as its wrong defined in ghidra } DPOINT D2UnitStrc::getTargetPos(DPOINT adjust) { if (this->eUnitType == UNIT_OBJECT || this->eUnitType == UNIT_WARP || this->eUnitType == UNIT_ITEM) { - return this->pos(); + return this->pos(adjust); } - return { 0, 0}; // ToDo; need to fix dynamic path as its wrong defined in ghidra + return { 0, 0 }; // ToDo; need to fix dynamic path as its wrong defined in ghidra } } \ No newline at end of file