Prevent packet processing when disconnected
This commit is contained in:
parent
394733ffc7
commit
096c67db9b
|
@ -4,6 +4,7 @@
|
||||||
#include "pc/debuglog.h"
|
#include "pc/debuglog.h"
|
||||||
|
|
||||||
void packet_process(struct Packet* p) {
|
void packet_process(struct Packet* p) {
|
||||||
|
if (gNetworkType == NT_NONE) { return; }
|
||||||
if (p->levelAreaMustMatch) {
|
if (p->levelAreaMustMatch) {
|
||||||
extern s16 gCurrCourseNum, gCurrActStarNum, gCurrLevelNum, gCurrAreaIndex;
|
extern s16 gCurrCourseNum, gCurrActStarNum, gCurrLevelNum, gCurrAreaIndex;
|
||||||
bool levelAreaMismatch =
|
bool levelAreaMismatch =
|
||||||
|
|
Loading…
Reference in New Issue