Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Updated THANKS file

  • Loading branch information...
commit 1519ec0b755296b555ae096bc780329233e242b4 1 parent ea5bd62
TOM_RUS tomrus88 authored

Showing 2 changed files with 14 additions and 4 deletions. Show diff stats Hide diff stats

  1. +3 0  THANKS
  2. +11 4 src/game/GameObject.cpp
3  THANKS
@@ -21,6 +21,9 @@ similar to this one:
21 21 community with a great server. We have not gained too much help from them,
22 22 but we have recieved some.
23 23
  24 + Thanks to WCell team (especially Ralek) for reseach on realm reconnect sequence,
  25 + item scaling stats algorithm, gameobject rotation issues.
  26 +
24 27 The easiest policy with this file is to thank everyone who contributes to the
25 28 project, without judging the value of the contribution.
26 29
15 src/game/GameObject.cpp
@@ -124,11 +124,18 @@ bool GameObject::Create(uint32 guidlow, uint32 name_id, Map *map, float x, float
124 124 SetFloatValue(GAMEOBJECT_FACING, ang); //this is not facing angle
125 125
126 126 int64 rotation = 0;
127   - float f_rot = sin(ang / 2.0f);
128   - int64 i_rot = f_rot / atan(pow(2.0f, -20.0f));
129   - rotation |= (i_rot << 43 >> 43) & 0x00000000001FFFFF;
130 127
131   - sLog.outDebug("go_create: ang: %f, rot: " SI64FMTD, ang, rotation);
  128 + float f_rot1 = sin(ang / 2.0f);
  129 + int64 i_rot1 = f_rot1 / atan(pow(2.0f, -20.0f));
  130 + rotation |= (i_rot1 << 43 >> 43) & 0x00000000001FFFFF;
  131 +
  132 + //float f_rot2 = sin(0.0f / 2.0f);
  133 + //int64 i_rot2 = f_rot2 / atan(pow(2.0f, -20.0f));
  134 + //rotation |= (((i_rot2 << 22) >> 32) >> 11) & 0x000003FFFFE00000;
  135 +
  136 + //float f_rot3 = sin(0.0f / 2.0f);
  137 + //int64 i_rot3 = f_rot3 / atan(pow(2.0f, -21.0f));
  138 + //rotation |= (i_rot3 >> 42) & 0x7FFFFC0000000000;
132 139
133 140 SetUInt64Value(GAMEOBJECT_ROTATION, rotation);
134 141

0 comments on commit 1519ec0

Please sign in to comment.
Something went wrong with that request. Please try again.