From c76cb6c4b47d42f8cbc36d6e5f334344eb3ab2fa Mon Sep 17 00:00:00 2001 From: DodoBirb Date: Wed, 8 Jun 2022 12:20:26 +1000 Subject: [PATCH] Attempt to fix hitbox glitch --- Export_Code/gml_Object_oMultiHitbox_Step_0.gml | 5 +++++ Export_Code/gml_Object_oScrewAttack_Step_0.gml | 5 +++++ Export_Code/gml_Object_oSpeedBoost_Step_0.gml | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/Export_Code/gml_Object_oMultiHitbox_Step_0.gml b/Export_Code/gml_Object_oMultiHitbox_Step_0.gml index a05dd97..c15e3d3 100644 --- a/Export_Code/gml_Object_oMultiHitbox_Step_0.gml +++ b/Export_Code/gml_Object_oMultiHitbox_Step_0.gml @@ -6,6 +6,11 @@ if instance_exists(oClient) { if (ds_list_size(oClient.roomListData) > 0) { + if (ds_list_find_index(oClient.roomList, myid) < 0) + { + ds_list_delete(global.hitboxList, findID) + instance_destroy() + } for (i = 0; i < ds_list_size(oClient.roomListData); i++) { arrDraw = ds_list_find_value(oClient.roomListData, i) diff --git a/Export_Code/gml_Object_oScrewAttack_Step_0.gml b/Export_Code/gml_Object_oScrewAttack_Step_0.gml index bd5a748..e28f7dd 100644 --- a/Export_Code/gml_Object_oScrewAttack_Step_0.gml +++ b/Export_Code/gml_Object_oScrewAttack_Step_0.gml @@ -9,6 +9,11 @@ if (myid != 0) { if (ds_list_size(oClient.roomListData) > 0) { + if (ds_list_find_index(oClient.roomList, myid) < 0) + { + ds_list_delete(global.screwList, findID) + instance_destroy() + } for (i = 0; i < ds_list_size(oClient.roomListData); i++) { arrDraw = ds_list_find_value(oClient.roomListData, i) diff --git a/Export_Code/gml_Object_oSpeedBoost_Step_0.gml b/Export_Code/gml_Object_oSpeedBoost_Step_0.gml index ae9069f..6a62725 100644 --- a/Export_Code/gml_Object_oSpeedBoost_Step_0.gml +++ b/Export_Code/gml_Object_oSpeedBoost_Step_0.gml @@ -8,6 +8,11 @@ if (myid != 0) { if (ds_list_size(oClient.roomListData) > 0) { + if (ds_list_find_index(oClient.roomList, myid) < 0) + { + ds_list_delete(global.speedList, findID) + instance_destroy() + } for (i = 0; i < ds_list_size(oClient.roomListData); i++) { arrDraw = ds_list_find_value(oClient.roomListData, i)