Skip to content

Commit

Permalink
Fixes webmap even if there are spaces in the map name (#16239)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ldip999 authored Jul 3, 2024
1 parent e39348d commit a47bc9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interface/interface.dm
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@
var/choice = alert("Do you want to view the ground or the ship?",,"Ship","Ground","Cancel")
switch(choice)
if("Ship")
map_url = lowertext(SSmapping.configs[SHIP_MAP].map_name)
map_url = replacetext(lowertext(SSmapping.configs[SHIP_MAP].map_name)," ", "")
if("Ground")
map_url = lowertext(SSmapping.configs[GROUND_MAP].map_name)
map_url = replacetext(lowertext(SSmapping.configs[GROUND_MAP].map_name)," ", "")

if(!map_url)
to_chat(src, span_warning("Mapping subsystem hasn't finished loading yet, try again later."))
Expand Down

0 comments on commit a47bc9a

Please sign in to comment.