Permalink
Browse files

HAMT: choose spin-dir based on id (already random)

  • Loading branch information...
1 parent db908d3 commit a6b1d992090881ac6c768a1c3beaed28e004e698 rt committed Oct 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 rts/Sim/MoveTypes/HoverAirMoveType.cpp
@@ -890,7 +890,7 @@ bool CHoverAirMoveType::Update()
owner->SetCrashing(false);
owner->KillUnit(true, false, 0);
} else {
- #define SPIN_DIR(o) ((o->lastAttackFrame & 1) * 2 - 1)
+ #define SPIN_DIR(o) ((o->id & 1) * 2 - 1)
wantedHeading = GetHeadingFromVector(owner->rightdir.x * SPIN_DIR(owner), owner->rightdir.z * SPIN_DIR(owner));
wantedHeight = 0.0f;
#undef SPIN_DIR

0 comments on commit a6b1d99

Please sign in to comment.