Quantcast

Fix for ticket 176.

Author Johnny C. Lam <jlam88@gmail.com>
Author date 2012-10-16 01:20:32
Author local date 2012-10-16 01:20:32 +0000
Committer Johnny C. Lam <jlam88@gmail.com>
Committer date 2012-10-16 01:20:32
Committer local date 2012-10-16 01:20:32 +0000
Commit 0e398e3816e352ffb5492e8ca2946d2441b8435c
Tree 48ce65257186acf82b2365842eece2487197ded8
Parent d036b22d47676d32c5de962c93281a308a7d62da
Fix for ticket 176.

The Ovale icon bar is being shown/hidden improperly when the player is in
a pseudo-vehicle where the player is controlling something other than
himself.  Use UnitHasVehicleUI() instead of UnitInVehicle() to detect this
condition properly.  UnitHasVehicleUI() returns true if the player has a
vehicle action bar, which corresponds to the player not being able to use
his own abilities.

Analysis and fix from Galvin in ticket 176.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@599 d5049fe3-3747-40f7-a4b5-f36d6801af5f