Skip to content

Commit 028aa45

Browse files
committed
Make VC6 and VS22 builds use different magic values in LAN network messages.
1 parent 8a9db21 commit 028aa45

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

GeneralsMD/Code/GameEngine/Include/GameNetwork/NetworkDefs.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,12 @@ enum PlayerLeaveCode CPP_11(: Int) {
170170
};
171171

172172
// Magic number for identifying a Generals packet.
173+
#if defined(_MSC_VER) && _MSC_VER < 1300
174+
// Original retail value is used for builds with VC6 (should be compatible)
173175
static const UnsignedShort GENERALS_MAGIC_NUMBER = 0xF00D;
176+
#else
177+
static const UnsignedShort GENERALS_MAGIC_NUMBER = 0xF00D+1;
178+
#endif
174179

175180
// The number of fps history entries.
176181
//static const Int NETWORK_FPS_HISTORY_LENGTH = 30;

0 commit comments

Comments
 (0)