mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 13:35:12 +00:00
Spoofing adjustments
This commit is contained in:
parent
8bfadc95f1
commit
7a4505e353
5 changed files with 0 additions and 30 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue