mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 03:55:11 +00:00
Another attempt at connection issue fix
This commit is contained in:
parent
1c0963ba90
commit
dd0060612a
3 changed files with 3 additions and 1 deletions
Binary file not shown.
|
@ -556,7 +556,7 @@ void bhv_chain_chomp_gate_init(void) {
|
|||
* Update function for chain chomp gate
|
||||
*/
|
||||
void bhv_chain_chomp_gate_update(void) {
|
||||
if (o->parentObj->oChainChompHitGate) {
|
||||
if (o->parentObj && o->parentObj->oChainChompHitGate) {
|
||||
spawn_mist_particles_with_sound(SOUND_GENERAL_WALL_EXPLOSION);
|
||||
set_camera_shake_from_point(SHAKE_POS_SMALL, o->oPosX, o->oPosY, o->oPosZ);
|
||||
spawn_mist_particles_variable(0, 0x7F, 200.0f);
|
||||
|
|
|
@ -35,6 +35,7 @@ static void remove_node_from_list(struct PacketLinkedList* node) {
|
|||
}
|
||||
|
||||
void network_forget_all_reliable(void) {
|
||||
LOG_INFO("Clearing all reliable!");
|
||||
struct PacketLinkedList* node = head;
|
||||
while (node != NULL) {
|
||||
struct PacketLinkedList* next = node->next;
|
||||
|
@ -47,6 +48,7 @@ void network_forget_all_reliable(void) {
|
|||
|
||||
void network_forget_all_reliable_from(u8 localIndex) {
|
||||
if (localIndex == 0) { return; }
|
||||
LOG_INFO("Clearing all reliable from %u", localIndex);
|
||||
struct PacketLinkedList* node = head;
|
||||
while (node != NULL) {
|
||||
struct PacketLinkedList* next = node->next;
|
||||
|
|
Loading…
Reference in a new issue