CorsixTH
CorsixTH copied to clipboard
[Bug] Cabinet teleports to doctor
Describe the issue
File cabinet moves by itself
Steps to Reproduce
-
Load save game attached to #2020
-
Watch doctor in GP using the file cabinet
-
Cabinet teleports to doctor.
This is a blocked off area bug. The walk doesn't actual walk anywhere, and the use animation just starts for the cabinet. Link to #826. I made note in #1462 of the drinks machine teleporting and its one a few other issues, (see #1682). There is another scenario not in #1682 where a patient teleports to the bench and off it.
However I think this scenario more closely relates to incorrectly blocking off areas vs the starting an action that shouldn't/can't start. TH itself for most blocked off areas doesn't check paths before a room is placed, place a room in a blocked off area fails. And with objects in a room it generally checks path to the door, but I don't think path checking occurs for fire extinguisher, bin, radiator or plant I can double check this when I get time. In the corridors its also possible to block an area off and that is more than likely due to the algorithm in place and it gives up.
Yes, leaning towards putting blocked off checks back inside rooms again. It seems to be causing more issues than just blocking off parts of the hospital.
I found this one by accident. Though... the doctor teleported to cabinet then back again, rather than the cabinet moving. Same cause though.
The doctor always sits down from the right of the chair. They also always will get up from the left. As mugmuggy said, this action of getting up/sitting down doesn't really move the doctor anywhere until after the fact. It's an odd design to force such movement, but alas we must work with it as so.
This bug also will occur if you put the desk so the chair isn't reachable from the right -- it actually causes a broken walk action and crashes the game (aka #1963 )