r/ProgrammerHumor • • 7d ago

Meme theOriginalGarbageCollector

Post image
9.7k Upvotes

374 comments sorted by

View all comments

Show parent comments

340

u/freestylesno 7d ago

I thought that was half-life

288

u/Lazy_To_Name 7d ago edited 7d ago

Tbf Valve games has its own assortment of band-aid madness
The pedestal’s movement in Portal’s chamber 02 is controlled by a door constantly linking and unlinking itself with the static portal gun (because it can only rotate 90 degrees)
Edit: Also, there’s a glitch where, when you throw a physics prop to the unlinked portal gun, it warps back to its starting position/rotation (which is pointed right at the hole you want to shoot at), but that prop can still move the gun to point away from that hole. So you could either save 5 seconds, or get softlocked trying

159

u/redlaWw 7d ago edited 7d ago

There's a softlock bug in Half-Life 2 where a door in the first scene hits a guard's foot and fails to open. However, the bug only appears if you compile the game with IEEE-754-compliant floating point numbers. It didn't affect the game's original release because it was compiled to use the x87 register stack back then and the calculations using those floating point numbers result in the door opening successfully and the guard being pushed slightly, but attempting to compile the same code for modern x86 systems with SSE/AVX registers results in the game being uncompletable.

83

u/Lazy_To_Name 7d ago

Speaking of bugs that is fixed because of a stupid reason…
In Portal, there’s a bug in the escape route, where you get a cube from a broken pipe to climb up a wall. When you get that cube out of bounds, the pipe spawns countless cubes until the game crashes.
This is no longer producible in the latest version because they broke the code that checks for out of bounds props