diff --git a/src/pc/network/packets/packet_area_request.c b/src/pc/network/packets/packet_area_request.c index 17900e2a..44db627d 100644 --- a/src/pc/network/packets/packet_area_request.c +++ b/src/pc/network/packets/packet_area_request.c @@ -44,12 +44,6 @@ void network_receive_area_request(struct Packet* p) { return; } - // anti spoof - if (packet_spoofed(p, globalIndex)) { - LOG_ERROR("rx spoofed area request"); - return; - } - // send area network_send_area(toNp); } diff --git a/src/pc/network/packets/packet_level_area_inform.c b/src/pc/network/packets/packet_level_area_inform.c index 59be29c6..378f1034 100644 --- a/src/pc/network/packets/packet_level_area_inform.c +++ b/src/pc/network/packets/packet_level_area_inform.c @@ -67,12 +67,6 @@ void network_receive_level_area_inform(struct Packet* p) { return; } - // anti spoof - if (packet_spoofed(p, globalIndex)) { - LOG_ERROR("rx spoofed level area inform"); - return; - } - sLevelAreaInformSeq[0][globalIndex] = seq; network_player_update_course_level(np, courseNum, actNum, levelNum, areaIndex); diff --git a/src/pc/network/packets/packet_level_request.c b/src/pc/network/packets/packet_level_request.c index bf5eec7e..dee5c413 100644 --- a/src/pc/network/packets/packet_level_request.c +++ b/src/pc/network/packets/packet_level_request.c @@ -51,12 +51,6 @@ void network_receive_level_request(struct Packet* p) { return; } - // anti spoof - if (packet_spoofed(p, globalIndex)) { - LOG_ERROR("rx spoofed level request"); - return; - } - // send level network_send_level(toNp, false); } diff --git a/src/pc/network/packets/packet_object.c b/src/pc/network/packets/packet_object.c index 1391fc59..ffd4b787 100644 --- a/src/pc/network/packets/packet_object.c +++ b/src/pc/network/packets/packet_object.c @@ -294,12 +294,6 @@ static struct SyncObject* packet_read_object_header(struct Packet* p, u8* fromLo struct NetworkPlayer* np = network_player_from_global_index(fromGlobalIndex); *fromLocalIndex = (np != NULL) ? np->localIndex : p->localIndex; - // anti spoof - if (packet_spoofed(p, fromGlobalIndex)) { - LOG_ERROR("rx spoofed object"); - return NULL; - } - // get sync ID, sanity check u32 syncId = 0; packet_read(p, &syncId, sizeof(u32)); diff --git a/src/pc/network/packets/packet_spawn_star.c b/src/pc/network/packets/packet_spawn_star.c index b72c6317..8c6dc451 100644 --- a/src/pc/network/packets/packet_spawn_star.c +++ b/src/pc/network/packets/packet_spawn_star.c @@ -75,12 +75,6 @@ void network_receive_spawn_star_nle(struct Packet* p) { packet_read(p, &syncId, sizeof(u32)); packet_read(p, ¶ms, sizeof(u32)); - // anti spoof - if (packet_spoofed(p, globalIndex)) { - LOG_ERROR("rx spoofed star"); - return; - } - // grab network player first struct Object* object = NULL; if (globalIndex != UNKNOWN_GLOBAL_INDEX) {