Skip to content

Commit

Permalink
Initial Fixes (BeeStation#3521)
Browse files Browse the repository at this point in the history
  • Loading branch information
park66665 authored Jan 31, 2021
1 parent f96383f commit cfa1744
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion code/controllers/subsystem/stat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ SUBSYSTEM_DEF(stat)
var/mob/M = C.mob
if(M)
//Handle listed turfs seperately
if(M.listed_turf?.name == C.selected_stat_tab)
if(sanitize(M.listed_turf?.name) == C.selected_stat_tab)
currentrun_listed += C
else
//Auto-update, not forced
Expand Down
2 changes: 1 addition & 1 deletion code/modules/admin/admin_verbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ GLOBAL_PROTECT(admin_verbs_hideable)
set name = "Adminverbs - Hide Most"
set category = "Admin"

remove_verb(list(/client/proc/hide_most_verbs, GLOB.admin_verbs_hideable))
remove_verb(list(/client/proc/hide_most_verbs) + GLOB.admin_verbs_hideable)
add_verb(/client/proc/show_verbs)

to_chat(src, "<span class='interface'>Most of your adminverbs have been hidden.</span>")
Expand Down
4 changes: 2 additions & 2 deletions code/modules/admin/verbs/mapping.dm
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,13 @@ GLOBAL_LIST_EMPTY(dirty_vars)
if(!check_rights(R_DEBUG))
return
remove_verb(/client/proc/enable_debug_verbs)
add_verb(list(/client/proc/disable_debug_verbs, GLOB.admin_verbs_debug_mapping))
add_verb(list(/client/proc/disable_debug_verbs) + GLOB.admin_verbs_debug_mapping)
SSblackbox.record_feedback("tally", "admin_verb", 1, "Enable Debug Verbs") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!

/client/proc/disable_debug_verbs()
set category = "Debug"
set name = "Debug verbs - Disable"
remove_verb(list(/client/proc/disable_debug_verbs, GLOB.admin_verbs_debug_mapping))
remove_verb(list(/client/proc/disable_debug_verbs) + GLOB.admin_verbs_debug_mapping)
add_verb(/client/proc/enable_debug_verbs)
SSblackbox.record_feedback("tally", "admin_verb", 1, "Disable Debug Verbs") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!

Expand Down
4 changes: 2 additions & 2 deletions code/modules/mob/mob_stat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
else
// ===== NON CONSTANT TABS (Tab names which can change) =====
// ===== LISTEDS TURFS =====
if(listed_turf && listed_turf.name == selected_tab)
if(listed_turf && sanitize(listed_turf.name) == selected_tab)
client.stat_update_mode = STAT_MEDIUM_UPDATE
var/list/overrides = list()
for(var/image/I in client.images)
Expand Down Expand Up @@ -173,7 +173,7 @@
if(!TurfAdjacent(listed_turf))
listed_turf = null
else
tabs |= listed_turf.name
tabs |= sanitize(listed_turf.name)
//Add spells
var/list/spells = mob_spell_list
if(mind)
Expand Down

0 comments on commit cfa1744

Please sign in to comment.