From 4ace9efbed4ecb3846fd603e72fd7257cb6adce9 Mon Sep 17 00:00:00 2001 From: DodoBirb Date: Wed, 8 Jun 2022 12:26:53 +1000 Subject: [PATCH] Fixed hitboxes inheriting from random players --- Export_Code/gml_Object_oMultiHitbox_Step_0.gml | 16 ++++++++-------- Export_Code/gml_Object_oScrewAttack_Step_0.gml | 12 ++++++------ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Export_Code/gml_Object_oMultiHitbox_Step_0.gml b/Export_Code/gml_Object_oMultiHitbox_Step_0.gml index c15e3d3..215e69c 100644 --- a/Export_Code/gml_Object_oMultiHitbox_Step_0.gml +++ b/Export_Code/gml_Object_oMultiHitbox_Step_0.gml @@ -15,16 +15,16 @@ if instance_exists(oClient) { arrDraw = ds_list_find_value(oClient.roomListData, i) arrID = arrDraw[0] - arrX = arrDraw[1] - arrY = arrDraw[2] - arrSprite = arrDraw[3] - arrImage = arrDraw[4] - arrState = arrDraw[19] - arrSAX = arrDraw[20] - arrSJBall = arrDraw[22] - arrInvincible = arrDraw[27] if (arrID == myid) { + arrX = arrDraw[1] + arrY = arrDraw[2] + arrSprite = arrDraw[3] + arrImage = arrDraw[4] + arrState = arrDraw[19] + arrSAX = arrDraw[20] + arrSJBall = arrDraw[22] + arrInvincible = arrDraw[27] if (!absorb) x = arrX if (!absorb) diff --git a/Export_Code/gml_Object_oScrewAttack_Step_0.gml b/Export_Code/gml_Object_oScrewAttack_Step_0.gml index e28f7dd..ef80ff7 100644 --- a/Export_Code/gml_Object_oScrewAttack_Step_0.gml +++ b/Export_Code/gml_Object_oScrewAttack_Step_0.gml @@ -18,14 +18,14 @@ if (myid != 0) { arrDraw = ds_list_find_value(oClient.roomListData, i) arrID = arrDraw[0] - arrX = arrDraw[1] - arrY = arrDraw[2] - arrSprite = arrDraw[3] - mirror = arrDraw[12] - arrRoom = arrDraw[14] - arrState = arrDraw[19] if (arrID == myid) { + arrX = arrDraw[1] + arrY = arrDraw[2] + arrSprite = arrDraw[3] + mirror = arrDraw[12] + arrRoom = arrDraw[14] + arrState = arrDraw[19] x = arrX y = arrY if (arrRoom != room)