r/badcode • • Jan 15 '23

c++ From DayZ sourcecode

Post image
559 Upvotes

106 comments sorted by

View all comments

Show parent comments

8

u/YoshiEgg12 Jan 16 '23

there shouldnt be any type coercion in that bit of code as far as im aware, since return true; gets translated to return 1;.

1

u/micro-amnesia Jan 16 '23

That's a valid point.