Skip to content

Commit

Permalink
removes hardcoded server name from latejoiners (#4753)
Browse files Browse the repository at this point in the history
latejoiners were always shown the default skin in the .dmf as the custom
title based on config was only shown if you happened to be connected
when SSmapping was initializing

:cl:
server: the server now respects /string/title for late joiners
/:cl:
  • Loading branch information
harryob authored Oct 22, 2023
1 parent 81f90df commit b02c844
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions code/controllers/subsystem/mapping.dm
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ SUBSYSTEM_DEF(mapping)
/datum/controller/subsystem/mapping/proc/HACK_LoadMapConfig()
if(!configs)
configs = load_map_configs(ALL_MAPTYPES, error_if_missing = FALSE)
for(var/i in GLOB.clients)
var/client/C = i
winset(C, null, "mainwindow.title='[CONFIG_GET(string/title)] - [SSmapping.configs[SHIP_MAP].map_name]'")
world.name = "[CONFIG_GET(string/title)] - [SSmapping.configs[SHIP_MAP].map_name]"

/datum/controller/subsystem/mapping/Initialize(timeofday)
HACK_LoadMapConfig()
Expand Down
1 change: 0 additions & 1 deletion interface/skin.dmf
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ window "mainwindow"
anchor2 = -1,-1
is-default = true
saved-params = "pos;size;is-minimized;is-maximized"
title = "CM-SS13 - USS Almayer"
is-maximized = true
statusbar = false
icon = 'icons\\taskbar\\gml_distress.png'
Expand Down

0 comments on commit b02c844

Please sign in to comment.