More Cleanups
This commit is contained in:
@@ -98,7 +98,7 @@ namespace Game.Entities
|
||||
{
|
||||
posX = (float)(posX + (offset.posX * Math.Cos(Orientation) + offset.posY * Math.Sin(Orientation + MathFunctions.PI)));
|
||||
posY = (float)(posY + (offset.posY * Math.Cos(Orientation) + offset.posX * Math.Sin(Orientation)));
|
||||
posZ = posZ + offset.posZ;
|
||||
posZ += offset.posZ;
|
||||
SetOrientation(Orientation + offset.Orientation);
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@ namespace Game.Entities
|
||||
if (o < 0)
|
||||
{
|
||||
float mod = o * -1;
|
||||
mod = mod % (2.0f * MathFunctions.PI);
|
||||
mod %= (2.0f * MathFunctions.PI);
|
||||
mod = -mod + 2.0f * MathFunctions.PI;
|
||||
return mod;
|
||||
}
|
||||
|
||||
@@ -26,9 +26,8 @@ namespace Game.Entities
|
||||
public class UpdateFieldHolder
|
||||
{
|
||||
UpdateMask _changesMask = new((int)TypeId.Max);
|
||||
WorldObject _owner;
|
||||
|
||||
public UpdateFieldHolder(WorldObject owner) { _owner = owner; }
|
||||
public UpdateFieldHolder(WorldObject owner) { }
|
||||
|
||||
public BaseUpdateData<T> ModifyValue<T>(BaseUpdateData<T> updateData)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user