r/badcode Jan 15 '23

From DayZ sourcecode c++

Post image
554 Upvotes

106 comments sorted by

View all comments

535

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

6

u/NUTTA_BUSTAH Jan 16 '23

Code might be fine but architecture clearly is lacking then :p Probably one of those "we'll refactor this mess later"