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

214

u/barzamsr Jun 09 '20

Aren't magic numbers supposed to be defined as constants, not variables?

0

u/[deleted] Jun 09 '20

[deleted]

45

u/cj81499 Jun 09 '20

So it's a bad variable name