summaryrefslogtreecommitdiff
path: root/Client/Assembly-CSharp/PlayerPhysics.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-04 08:27:46 +0800
committerchai <chaifix@163.com>2021-01-04 08:27:46 +0800
commitb0f6c6df9e8ae1688646ab8c8934708123e4e979 (patch)
tree3c77641aaf068d50b4d5503c52bb65518d4a1afe /Client/Assembly-CSharp/PlayerPhysics.cs
parent89d302af2b9f84befd7497e52f1d72162721cd70 (diff)
*网络
Diffstat (limited to 'Client/Assembly-CSharp/PlayerPhysics.cs')
-rw-r--r--Client/Assembly-CSharp/PlayerPhysics.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Client/Assembly-CSharp/PlayerPhysics.cs b/Client/Assembly-CSharp/PlayerPhysics.cs
index c35e21d..c751f0d 100644
--- a/Client/Assembly-CSharp/PlayerPhysics.cs
+++ b/Client/Assembly-CSharp/PlayerPhysics.cs
@@ -212,7 +212,7 @@ public class PlayerPhysics : InnerNetObject
base.transform.position = spawnPos + new Vector3(amFlipped ? -0.3f : 0.3f, -0.24f);
this.ResetAnim(false);
Vector2 b = (-spawnPos).normalized;
- yield return this.WalkPlayerTo(spawnPos + b, 0.01f);
+ yield return this.WalkPlayerTo((Vector2)spawnPos + b, 0.01f);
this.myPlayer.Collider.enabled = true;
KillAnimation.SetMovement(this.myPlayer, true);
this.myPlayer.nameText.gameObject.SetActive(true);
@@ -267,7 +267,7 @@ public class PlayerPhysics : InnerNetObject
do
{
Vector2 vector2;
- Vector2 vector = vector2 = worldPos - base.transform.position;
+ Vector2 vector = vector2 = worldPos - (Vector2)base.transform.position;
if (vector2.sqrMagnitude <= tolerance)
{
break;