From f645bfd980afb6cc3e293ba9712feddc3efd6159 Mon Sep 17 00:00:00 2001 From: Jack Edge Date: Mon, 27 Jun 2016 19:08:11 +0100 Subject: [PATCH] Ratvar speech is now misheard correctly Previously it was displaying as clockwork scarab says "", because of a runtime in the rot13() function. I fixed it. Also fixes the maptext for debug GPS units. --- code/__HELPERS/text.dm | 7 ++++--- code/modules/telesci/gps.dm | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/code/__HELPERS/text.dm b/code/__HELPERS/text.dm index 69b87d55597..68ba488fe7b 100644 --- a/code/__HELPERS/text.dm +++ b/code/__HELPERS/text.dm @@ -462,9 +462,10 @@ var/list/rot13_lookup = list() var/t_out = "" for(var/i in 1 to length(t_in)) - if(i in rot13_lookup) - t_out += rot13_lookup[i] + var/char = copytext(t_in, i, i + 1) + if(char in rot13_lookup) + t_out += rot13_lookup[char] else - t_out += i + t_out += char return t_out diff --git a/code/modules/telesci/gps.dm b/code/modules/telesci/gps.dm index cbb5f38e8e1..4c8f6125d6d 100644 --- a/code/modules/telesci/gps.dm +++ b/code/modules/telesci/gps.dm @@ -138,7 +138,7 @@ var/list/GPS_list = list() // I assume it's faster to color,tag and OR the turf in, rather // then checking if its there T.color = RANDOM_COLOUR - T.maptext = "[x],[y],[z]" + T.maptext = "[T.x],[T.y],[T.z]" tagged |= T /obj/item/device/gps/visible_debug/proc/clear()