by Starlevel004 · 1y ago · 0 comments
// Homework for today. Write 2000 words reconciling "Your code must never crash" with "Intentionally putting crashes in the code". Fucktard.
// DEBUG_CRASH(( "xferScienceVec - vector is not empty, but should be\n" ));
//
https://github.com/electronicarts/CnC_Generals_Zero_Hour/blo... // Lets discuss how Windows is a flaming pile of poo. I'm now casting the header
// directly into the structure, because its the one I want, and this is just how
// its done. I hate Windows. - jkmcd
https://github.com/electronicarts/CnC_Generals_Zero_Hour/blo...// our RNG is basically shit -- horribly nonrandom at the start of the sequence.
// get a few values at random to get rid of the dreck.
// there's no mathematical basis for this, but empirically, it helps a lot.
UnsignedInt silly = GetGameLogicRandomSeed() % 7;
for (Int poo = 0; poo < silly; ++poo)
{
GameLogicRandomValue(0, 1); // ignore result
}
I'm sad if developers can no longer name their variables poo and fuck.
Also teenage me would probably be horrified finding out 30 years later his source code was public.
I guess that's why moral rights are unalienable in many countries: if you are horrified what they do with it, you still retain that and this right did not go to your employer
Not that I think there is anything here the devs need to be ashamed of, to be clear, just what came to mind as I read this remark
I couldn't help but chuckle at your user name when reading this comment
Tbf, I chalked it up to a one singular cantankerous reviewer rather than the whole company.
So the RNG doesn't seem great.
https://en.wikipedia.org/wiki/Fast_inverse_square_root#Overv...
else {
DEBUG_CRASH(("PREFER_CORRECT_SOLUTION @todo impl"));
}
(From PartitionSolver.cpp)