From fb5fb86baa48bebec01f0955dc378c123fb77ead Mon Sep 17 00:00:00 2001 From: Jacquerel Date: Thu, 9 Feb 2023 23:05:13 +0000 Subject: [PATCH] Updates space verification unit test to use new proc (#73322) ## About The Pull Request At San's request, updates the space verification unit test to use the new "are we a planetary map" proc instead of having its own implementation of the same thing. ## Why It's Good For The Game If it gets broken in one place it will break in all of them, most importantly the unit test, which is what we want because that's what the test is for. ## Changelog Not player facing. --- code/modules/unit_tests/mapload_space_verification.dm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/code/modules/unit_tests/mapload_space_verification.dm b/code/modules/unit_tests/mapload_space_verification.dm index aaaaf7867d6..80772b8a633 100644 --- a/code/modules/unit_tests/mapload_space_verification.dm +++ b/code/modules/unit_tests/mapload_space_verification.dm @@ -5,11 +5,8 @@ priority = TEST_LONGER /datum/unit_test/mapload_space_verification/Run() - // Get the datum associated with our currently running map. - var/datum/map_config/current_map = SSmapping.config - // Is our current map a planetary station (NO space turfs allowed)? If so, check for ANY space turfs. - if(current_map.planetary) + if(SSmapping.is_planetary()) validate_planetary_map() return