fixed wall textures for heightmap

also made the code SLIGHTLY cleaner in that there's non of that dumb
hardcoded checking for `if dd == (1, 0)` and all that, but oh boy is
my code disgusting. so many horrible variable names