Skip to content

Commit fd9b8f7

Browse files
author
babelshift
committed
Fix wrong parsing of tower state.
1 parent 5a39941 commit fd9b8f7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

SteamWebAPI2/Models/DOTA2/TowerState.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ public class TowerState
1010
{
1111
public TowerState(int towerState)
1212
{
13-
IsAncientTopAlive = ((towerState >> 10) & 1) == 1 ? true : false;
14-
IsAncientBottomAlive = ((towerState >> 9) & 1) == 1 ? true : false;
13+
IsAncientBottomAlive = ((towerState >> 10) & 1) == 1 ? true : false;
14+
IsAncientTopAlive = ((towerState >> 9) & 1) == 1 ? true : false;
1515
IsBottomTier3Alive = ((towerState >> 8) & 1) == 1 ? true : false;
1616
IsBottomTier2Alive = ((towerState >> 7) & 1) == 1 ? true : false;
1717
IsBottomTier1Alive = ((towerState >> 6) & 1) == 1 ? true : false;

0 commit comments

Comments
 (0)