mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Remove two-player hack for packet_object
This commit is contained in:
parent
66af03c41d
commit
9f1d03d5b4
1 changed files with 1 additions and 2 deletions
|
|
@ -121,8 +121,7 @@ void network_clear_sync_objects(void) {
|
||||||
void network_set_sync_id(struct Object* o) {
|
void network_set_sync_id(struct Object* o) {
|
||||||
if (o->oSyncID != 0) { return; }
|
if (o->oSyncID != 0) { return; }
|
||||||
|
|
||||||
// two-player hack
|
u8 reserveId = gNetworkLevelLoaded ? gNetworkPlayerLocal->globalIndex : 0;
|
||||||
u8 reserveId = (gNetworkLevelLoaded && gNetworkType == NT_CLIENT) ? 1 : 0;
|
|
||||||
|
|
||||||
for (u16 i = 0; i < MAX_SYNC_OBJECTS; i++) {
|
for (u16 i = 0; i < MAX_SYNC_OBJECTS; i++) {
|
||||||
if (gSyncObjects[nextSyncID].reserved == reserveId && gSyncObjects[nextSyncID].o == NULL) { break; }
|
if (gSyncObjects[nextSyncID].reserved == reserveId && gSyncObjects[nextSyncID].o == NULL) { break; }
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue