More Cleanups

This commit is contained in:
hondacrx
2021-06-08 12:56:09 -04:00
parent 302a1f293c
commit 52e43853fe
58 changed files with 223 additions and 257 deletions
+2 -2
View File
@@ -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)
{