Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nishimura-Katsuo committed Aug 25, 2021
1 parent 754748d commit 40ca284
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion features/DrawAllStates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ namespace DrawAllStates {
public:
void init() override {
State[name] = false;
Settings[name] = true;
}

void gameLoop() override {
Expand Down
6 changes: 3 additions & 3 deletions framework/ghidra.extensions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit 40ca284

Please sign in to comment.