This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 22nd, 2012  |  syntax: Diff  |  size: 0.59 KB  |  views: 94  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff --git a/src/game/Object.cpp b/src/game/Object.cpp
  2. index ab84df4..e59a626 100644
  3. --- a/src/game/Object.cpp
  4. +++ b/src/game/Object.cpp
  5. @@ -738,6 +738,9 @@ void Object::_SetUpdateBits(UpdateMask *updateMask, Player* /*target*/) const
  6.          if(m_uint32Values_mirror[index]!= m_uint32Values[index])
  7.              updateMask->SetBit(index);
  8.      }
  9. +    // always update this field to prevent problems with shapeshifting
  10. +    if (GetTypeId() == TYPEID_PLAYER)
  11. +        updateMask->SetBit(UNIT_FIELD_BYTES_2);
  12.  }
  13.  
  14.  void Object::_SetCreateBits(UpdateMask *updateMask, Player* /*target*/) const
clone this paste RAW Paste Data