Skip to content

Commit

Permalink
respect hide_city_pcons_in_explorable setting in PconRefiller
Browse files Browse the repository at this point in the history
  • Loading branch information
DubbleClick committed Apr 11, 2024
1 parent 4883cc9 commit 971224a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion GWToolboxdll/Windows/Pcons.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@ class PconRefiller : public PconCity {

[[nodiscard]] bool CanUseByInstanceType() const override { return false; }
[[nodiscard]] bool CanUseByEffect() const override { return false; }
[[nodiscard]] bool IsVisible() const override { return visible && GW::Map::GetInstanceType() == GW::Constants::InstanceType::Outpost; }
[[nodiscard]] bool IsVisible() const override
{
return visible && (!hide_city_pcons_in_explorable_areas || GW::Map::GetInstanceType() != GW::Constants::InstanceType::Explorable);
}
void Draw(IDirect3DDevice9* device) override;
size_t QuantityForEach(const GW::Item* item) const override { return item->model_id == itemID ? 1u : 0u; }

Expand Down

0 comments on commit 971224a

Please sign in to comment.