Skip to content

Commit

Permalink
fix: solves the problem when combining zone pvp and no-logout tiles (#…
Browse files Browse the repository at this point in the history
…2123)

fecha opentibiabr/remeres-map-editor#60 e
#1765

Como informado no primeiro issue mencionado: quando existia a junção dos
tiles zones de pvp e no-logout, o zone pvp não funcionava.

- ❌ No-logout + pvp zone = no-logout funciona e pvp zone não.
- ✅ No-logout + protection zone = os dois funcionam.
- ✅ No-logout + no-pvp zone = os dois funcionam.

O problema estava na posição das condicionais em #557. Com este PR
resolve o problema.
  • Loading branch information
Luan Luciano authored Jan 27, 2024
1 parent 669d6e3 commit bceaa24
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/items/tile.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,12 @@ class Tile : public Cylinder, public SharedObject {
return ZONE_PROTECTION;
} else if (hasFlag(TILESTATE_NOPVPZONE)) {
return ZONE_NOPVP;
} else if (hasFlag(TILESTATE_NOLOGOUT)) {
return ZONE_NOLOGOUT;
} else if (hasFlag(TILESTATE_PVPZONE)) {
return ZONE_PVP;
} else {
return ZONE_NORMAL;
} else if (hasFlag(TILESTATE_NOLOGOUT)) {
return ZONE_NOLOGOUT;
}
return ZONE_NORMAL;
}

bool hasHeight(uint32_t n) const;
Expand Down

0 comments on commit bceaa24

Please sign in to comment.