Skip to content

Commit 16343f3

Browse files
helmutbuhlerxezon
authored andcommitted
[GEN][ZH] Compile out duplicate serial check in LAN lobby (#789)
1 parent 44fee19 commit 16343f3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Generals/Code/GameEngine/Source/GameNetwork/LANAPIhandlers.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ void LANAPI::handleRequestJoin( LANMessage *msg, UnsignedInt senderIP )
251251
}
252252
#endif
253253

254+
// TheSuperHackers @tweak Disables the duplicate serial check
255+
#if 0
254256
// check for a duplicate serial
255257
AsciiString s;
256258
for (player = 0; canJoin && player<MAX_SLOTS; ++player)
@@ -286,6 +288,7 @@ void LANAPI::handleRequestJoin( LANMessage *msg, UnsignedInt senderIP )
286288
}
287289
}
288290
}
291+
#endif
289292

290293
// We're the host, so see if he has a duplicate name
291294
for (player = 0; canJoin && player<MAX_SLOTS; ++player)

GeneralsMD/Code/GameEngine/Source/GameNetwork/LANAPIhandlers.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ void LANAPI::handleRequestJoin( LANMessage *msg, UnsignedInt senderIP )
252252
}
253253
#endif
254254

255+
// TheSuperHackers @tweak Disables the duplicate serial check
256+
#if 0
255257
// check for a duplicate serial
256258
AsciiString s;
257259
for (player = 0; canJoin && player<MAX_SLOTS; ++player)
@@ -287,6 +289,7 @@ void LANAPI::handleRequestJoin( LANMessage *msg, UnsignedInt senderIP )
287289
}
288290
}
289291
}
292+
#endif
290293

291294
// We're the host, so see if he has a duplicate name
292295
for (player = 0; canJoin && player<MAX_SLOTS; ++player)

0 commit comments

Comments
 (0)