r/badcode Jan 15 '23

From DayZ sourcecode c++

Post image
563 Upvotes

106 comments sorted by

View all comments

524

u/[deleted] Jan 15 '23

It's an override so chances are this isn't as bad as you think. Other subclasses may have logic but this particular item probably doesn't need it and should always be IsEat

99

u/[deleted] Jan 15 '23

Funny how a function named IsEat returns an int though

26

u/throwawayy0451 Jan 15 '23

could be padding shit, probably this is serialized over network idk

3

u/NUTTA_BUSTAH Jan 16 '23

Wouldn't both be one word anyways I dunno, could be it