From 3d86ce975ed1f3d099e6712bc269144d813f29e5 Mon Sep 17 00:00:00 2001 From: alex-gh Date: Fri, 14 Mar 2014 00:36:41 +0100 Subject: [PATCH 1/3] Optimized atmos control computer. Atmos control computer UI now only sorts actual air alarms, instead of all machines. --- code/WorkInProgress/Mini/atmos_control.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/WorkInProgress/Mini/atmos_control.dm b/code/WorkInProgress/Mini/atmos_control.dm index 3eed620ee9d..275b038277e 100644 --- a/code/WorkInProgress/Mini/atmos_control.dm +++ b/code/WorkInProgress/Mini/atmos_control.dm @@ -58,7 +58,10 @@ data["alarm"] = "\ref[current]" var/list/alarms=list() - for(var/obj/machinery/alarm/alarm in sortAtom(machines)) + var/list/alarm_list=list() + for(var/obj/machinery/alarm/alarm in machines) + alarm_list+=alarm + for(var/obj/machinery/alarm/alarm in sortAtom(alarm_list)) if(!is_in_filter(alarm.alarm_area.type)) continue // NO ACCESS 4 U From b46d7806112618c2784b39fc3b22baf828a62958 Mon Sep 17 00:00:00 2001 From: ZomgPonies Date: Wed, 19 Mar 2014 00:21:58 -0400 Subject: [PATCH 2/3] Fix Jukebox stopping radio --- code/modules/client/preferences_toggles.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/client/preferences_toggles.dm b/code/modules/client/preferences_toggles.dm index 91babc9f7c3..45bf1f8aae5 100644 --- a/code/modules/client/preferences_toggles.dm +++ b/code/modules/client/preferences_toggles.dm @@ -195,7 +195,7 @@ set category = "Preferences" set desc = "Toggle hearing streaming media (radios, jukeboxes, etc)" - prefs.toggles ^= SOUND_STREAMING + prefs.sound ^= SOUND_STREAMING prefs.save_preferences() usr << "You will [(prefs.toggles & SOUND_STREAMING) ? "now" : "no longer"] hear streamed media." // Restart. From 925060615a4b5515050eca1468aa19fc189e9240 Mon Sep 17 00:00:00 2001 From: ZomgPonies Date: Wed, 19 Mar 2014 00:40:24 -0400 Subject: [PATCH 3/3] Fixed custom item descriptions --- code/modules/customitems/item_spawning.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/customitems/item_spawning.dm b/code/modules/customitems/item_spawning.dm index e061afc1019..38d59f9c183 100644 --- a/code/modules/customitems/item_spawning.dm +++ b/code/modules/customitems/item_spawning.dm @@ -42,7 +42,7 @@ */ // Grab the info we want. - var/DBQuery/query = dbcon.NewQuery("SELECT cuiPath, cuiPropAdjust, cuiJobMask FROM CustomUserItems WHERE cuiCKey='[M.ckey]' AND (cuiRealName='[M.real_name]' OR cuiRealName='*')") + var/DBQuery/query = dbcon.NewQuery("SELECT cuiPath, cuiPropAdjust, cuiJobMask, cuiDescription FROM CustomUserItems WHERE cuiCKey='[M.ckey]' AND (cuiRealName='[M.real_name]' OR cuiRealName='*')") query.Execute() while(query.NextRow()) @@ -63,6 +63,7 @@ var/obj/item/Item = new path() + var/description = query.item[4] testing("Adding new custom item [query.item[1]] to [key_name_admin(M)]...") if(istype(Item,/obj/item/weapon/card/id)) var/obj/item/weapon/card/id/I = Item @@ -94,6 +95,8 @@ testing("Added to [S]!") M << "\blue Your [Item.name] has been added to your [S.name]." break + if(description) + Item.desc = description //skip: if (ok == 0) // Finally, since everything else failed, place it on the ground