Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[RDY] Litter placed before a door was placed was only found on thob checks #1474
Thats if any object but not if its litter prevent the door being placed. Litter is removed from all tiles inside a room, so its only outside where this becomes an issue. The other thing is that as it is an 'or' it only breaks on particular room orientations as it may check inside the room first, find the door and skip the rest of the statements.
Nothing stopping you building a room with a door where the adjacent tile in corridor has litter. Unfortunately when I was testing the other future pr, I had vomit everywhere that then resulted an in infinite loop of recalculating routes, and upon checking the thob found the it was 62 instead of 3.
The old walk code would redirect only where there was a wall found, so it could have also been entirely possible at one stage to build a room on the path with a door and therefore just walked over litter as it was never rerouting unless it hit that wall.