Remove two-player hack for packet_object

This commit is contained in:
MysterD 2020-10-13 18:11:40 -07:00
parent 66af03c41d
commit 9f1d03d5b4
1 changed files with 1 additions and 2 deletions

View File

@ -121,8 +121,7 @@ void network_clear_sync_objects(void) {
void network_set_sync_id(struct Object* o) {
if (o->oSyncID != 0) { return; }
// two-player hack
u8 reserveId = (gNetworkLevelLoaded && gNetworkType == NT_CLIENT) ? 1 : 0;
u8 reserveId = gNetworkLevelLoaded ? gNetworkPlayerLocal->globalIndex : 0;
for (u16 i = 0; i < MAX_SYNC_OBJECTS; i++) {
if (gSyncObjects[nextSyncID].reserved == reserveId && gSyncObjects[nextSyncID].o == NULL) { break; }