r/badcode • • Jun 09 '20

c++ EA published their Command&Conquer Code on github. This is my favorite part so far.

Post image
1.6k Upvotes

36 comments sorted by

View all comments

22

u/sergushka Jun 09 '20

It's actually not a bad code since this magic number is a part of the protocol and is used to check for example if there are no corruptions or the client is compatible. Protocol description could be elsewhere in the documentation.