mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 09:33:51 +00:00
Only face target when in combat, not when selecting friendly NPCs
This commit is contained in:
parent
e234ac8d7a
commit
05870c1f03
3 changed files with 5 additions and 3 deletions
|
|
@ -120,6 +120,7 @@ public:
|
|||
|
||||
// Targeting support
|
||||
void setTargetPosition(const glm::vec3* pos);
|
||||
void setInCombat(bool combat) { inCombat_ = combat; }
|
||||
bool isMoving() const;
|
||||
void triggerMeleeSwing();
|
||||
void setEquippedWeaponType(uint32_t inventoryType) { equippedWeaponInvType_ = inventoryType; meleeAnimId = 0; }
|
||||
|
|
@ -228,6 +229,7 @@ private:
|
|||
|
||||
// Target facing
|
||||
const glm::vec3* targetPosition = nullptr;
|
||||
bool inCombat_ = false;
|
||||
|
||||
// Selection circle rendering
|
||||
uint32_t selCircleVAO = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue