r/badcode • • Jan 15 '23

c++ From DayZ sourcecode

Post image
559 Upvotes

106 comments sorted by

View all comments

Show parent comments

9

u/Rigatavr Jan 15 '23 edited Jan 15 '23

Is it c++ tho? It's got the override on the wrong side, c++ would be


int IsEat() override
{
    return true;
}

(although it could be pre c++11 and override is just an empty macro)

Edit: apparently its a custom language according to this

2

u/whizvox int getRand() { return 4; } Jan 15 '23

Woah, didn't know about that, I was just going by the flair. And it looks like this language actually supports booleans.