There are so many interesting tidbits tucked away in the code, things the devs had to consider that have never crossed my mind whilst playing.
For instance, the idclev cheat handling in st_stuff.c has to check if the game is shareware and restrict level changes beyond a certain range.