Attempt on converting updatewaterstate for use with units (pets and vehicles)

This commit is contained in:
Kandera
2012-03-29 13:14:21 -04:00
parent 413cfac953
commit bb97ff7601
4 changed files with 50 additions and 5 deletions

View File

@@ -114,6 +114,9 @@ void MotionMaster::UpdateMotion(uint32 diff)
_cleanFlag &= ~MMCF_RESET;
}
// probably not the best place to pu this but im not really sure where else to put it.
_owner->UpdateUnderwaterState(_owner->GetMap(), _owner->GetPositionX(), _owner->GetPositionY(), _owner->GetPositionZ());
}
void MotionMaster::DirectClean(bool reset)