From 6255bb3086345546d48eb899fef491b76b18a92b Mon Sep 17 00:00:00 2001 From: "baloh.matevz" Date: Sun, 12 Feb 2012 20:59:06 +0000 Subject: [PATCH] - Profiles that were created before ghost ears was added had their ghost_ears value set to null, which then copied over. the profile setup page understood this as "hears everyone" while the game understood this as null, which is neither "hears everyone" nor "nearby creatures only", but it took null as 0, so it defaulted to "nearby creatures only". Applied a legacyfix that will properly update the profiles of everyone who does not yet have this set. - To fix this for your own character before this goes live, just toggle the ghost-ears setting on your profile setup page at least once and then select the option you wish to have. Then save the profile. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3116 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/mob/new_player/preferences.dm | 3 ++- code/modules/mob/new_player/savefile.dm | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/new_player/preferences.dm b/code/modules/mob/new_player/preferences.dm index 20b7046f11b..072d7753308 100644 --- a/code/modules/mob/new_player/preferences.dm +++ b/code/modules/mob/new_player/preferences.dm @@ -650,8 +650,9 @@ datum/preferences C.ooccolor = src.ooccolor C.be_alien = be_special & BE_ALIEN C.be_pai = be_special & BE_PAI + if(isnull(src.ghost_ears)) src.ghost_ears = 1 //There were problems where the default was null before someone saved their profile. C.ghost_ears = src.ghost_ears - + #undef UI_OLD #undef UI_NEW \ No newline at end of file diff --git a/code/modules/mob/new_player/savefile.dm b/code/modules/mob/new_player/savefile.dm index 06c55f920ee..475a3e45796 100644 --- a/code/modules/mob/new_player/savefile.dm +++ b/code/modules/mob/new_player/savefile.dm @@ -100,6 +100,7 @@ datum/preferences/proc/savefile_load(mob/user) F["name_is_always_random"] >> src.be_random_name F["midis"] >> src.midis F["ghost_ears"] >> src.ghost_ears + if(isnull(ghost_ears)) ghost_ears = 1 //Hotfix F["ooccolor"] >> src.ooccolor F["lastchangelog"] >> src.lastchangelog F["UI"] >> src.UI