Re:Source code for Quake 2 rerelease
by flohofwoe on Friday August 11, 2023 @06:21AM
(#37087031)
That hardly has to do with code quality, but instead that some edge-case "features" were not anticipated by the game designers, programmers and QA team, but "discovered" later by speedrunners.
[ Parent
| on HN ]
Re:Source code for Quake 2 rerelease
by FartyMcFarter on Friday August 11, 2023 @06:38AM
(#37087137)
Sometimes it is about code quality. Defensive, well-documented code would not be as likely to suffer from such bugs.
It's not just subtle floating-point errors either, but also outright wrong maths that appears to work (see [1] for an example), buffer overflows [2] etc.
I think they made the right trade-off, back in the 90s on hardware that could barely run the game, sticking extra defensive checks to make sure you have not accidentally clipped through the geometry, or simpler ones like making sure you are not running too fast, seems excessive.
They weren't coding for some NASA space probe and they knew it.
Re:Source code for Quake 2 rerelease
by FartyMcFarter on Friday August 11, 2023 @08:41AM
(#37088042)
Typically you'd put the checks only in debug builds.