Only run oClient Step events if connection is established

Should prevent single player sessions from breaking when F1 is accidently pressed.
pull/14/head
Jesright73 4 years ago
parent a4ff3e5ac0
commit 79224351d8

@ -25,10 +25,13 @@ if (!connected)
}
else
{
connected = 0
instance_destroy()
popup_text("Failed to connect")
}
}
if (connected)
{
if (global.event[103] > 0)
global.event[103] = floor(global.event[103])
if (global.event[303] > 0)
@ -815,3 +818,4 @@ if (connected && room == rm_a1h01 && global.event[51] == 0 && global.log[21] > 0
room_change(35, 1)
}
}
}
Loading…
Cancel
Save