Skip to content

Commit e8d379a

Browse files
Fix an nprintf being in the wrong logic branch (#4485)
1 parent 45862e0 commit e8d379a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

code/network/multi_obj.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1368,9 +1368,10 @@ int multi_oo_pack_data(net_player *pl, object *objp, ushort oo_flags, ubyte *dat
13681368

13691369
// Check that we are not sending too much data, if so, don't actually send.
13701370
if (packet_size + ret <= OO_MAX_DATA_SIZE) {
1371-
nprintf(("Network","Had to remove subsystems section from data packet for %s\n", shipp->ship_name));
13721371
oo_flags |= OO_SUBSYSTEMS_NEW;
13731372
packet_size += ret;
1373+
} else {
1374+
nprintf(("Network","Had to remove subsystems section from data packet for %s\n", shipp->ship_name));
13741375
}
13751376
}
13761377
}

0 commit comments

Comments
 (0)