From 6180b9fba0723c36936bb4d9f07614ec0ecef59a Mon Sep 17 00:00:00 2001 From: deathride58 Date: Wed, 1 Jun 2022 22:54:03 -0400 Subject: [PATCH] brief webedit to remove hardcoded checks for specific titlescreen sizes for centering --- code/game/turfs/closed.dm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/code/game/turfs/closed.dm b/code/game/turfs/closed.dm index 94f190aa24..ef3c6a91d9 100644 --- a/code/game/turfs/closed.dm +++ b/code/game/turfs/closed.dm @@ -76,7 +76,6 @@ desc = null icon = 'icons/blanks/blank_title.png' icon_state = "" - pixel_x = -64 plane = SPLASHSCREEN_PLANE bullet_bounce_sound = null @@ -93,10 +92,7 @@ INITIALIZE_IMMEDIATE(/turf/closed/indestructible/splashscreen) /turf/closed/indestructible/splashscreen/proc/handle_generic_titlescreen_sizes() var/icon/size_check = icon(SStitle.icon, icon_state) var/width = size_check.Width() - if(width == 480) // 480x480 is nonwidescreen - pixel_x = 0 - else if(width == 608) // 608x480 is widescreen - pixel_x = -64 + pixel_x = (672 - width) * 0.5 //The title screen is mapped with the expectation that it's 672x480. Should probably turn the title screen size into a define some time! /turf/closed/indestructible/splashscreen/vv_edit_var(var_name, var_value) . = ..()