mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-21 20:20:33 +01:00
Fixes connect_loc not reconnecting turf changes (#58507)
This commit is contained in:
@@ -35,10 +35,13 @@
|
||||
|
||||
current_turf.ChangeTurf(/turf/closed/wall)
|
||||
|
||||
current_turf = get_turf(watcher)
|
||||
SEND_SIGNAL(current_turf, COMSIG_MOCK_SIGNAL)
|
||||
TEST_ASSERT_EQUAL(watcher.times_called, 2, "After changing turf, connect_loc didn't reconnect it")
|
||||
|
||||
current_turf.ChangeTurf(/turf/open/floor/carpet)
|
||||
SEND_SIGNAL(current_turf, COMSIG_MOCK_SIGNAL)
|
||||
TEST_ASSERT_EQUAL(watcher.times_called, 3, "After changing turf a second time, connect_loc didn't reconnect it")
|
||||
|
||||
/datum/unit_test/connect_loc_change_turf/Destroy()
|
||||
run_loc_floor_bottom_left.ChangeTurf(old_turf_type)
|
||||
return ..()
|
||||
|
||||
Reference in New Issue
Block a user