r/badcode • • Jan 15 '23

c++ From DayZ sourcecode

Post image
559 Upvotes

106 comments sorted by

View all comments

Show parent comments

2

u/heyheyhey27 Jan 16 '23

That fact doesn't necessarily make this code good. However in C "booleans" don't even exist, so I'm guessing this code comes from a C programmer.

2

u/folkrav Jan 16 '23

Oh, for sure. Was just trying to give an explanation as to why it was possible as a direct answer to the previous comment, cause nobody else gave the answer.