diff --git a/code/defines/procs/global_lists.dm b/code/defines/procs/global_lists.dm index 7d036593855..9f2942a30b4 100644 --- a/code/defines/procs/global_lists.dm +++ b/code/defines/procs/global_lists.dm @@ -1,7 +1,7 @@ //Since it didn't really belong in any other category, I'm putting this here //This is for procs to replace all the goddamn 'in world's that are chilling around the code -var/global/list/player_list = list() //List of all logged in players (Based on mob reference) +var/global/list/player_list = list() //List of all logged in players **with clients attached** (Based on mob reference) var/global/list/admin_list = list() //List of all logged in admins (Based on mob reference) var/global/list/mob_list = list() //List of all mobs, including clientless var/global/list/living_mob_list = list() //List of all living mobs, including clientless diff --git a/code/game/gamemodes/game_mode.dm b/code/game/gamemodes/game_mode.dm index 76e4ae567dd..e194e341365 100644 --- a/code/game/gamemodes/game_mode.dm +++ b/code/game/gamemodes/game_mode.dm @@ -341,7 +341,7 @@ Whitespace:Seperator; /////////////////////////////////// /datum/game_mode/proc/get_living_heads() var/list/heads = list() - for(var/mob/living/carbon/human/player in player_list) + for(var/mob/living/carbon/human/player in mob_list) if(player.stat!=2 && player.mind && (player.mind.assigned_role in command_positions)) heads += player.mind return heads @@ -352,7 +352,7 @@ Whitespace:Seperator; //////////////////////////// /datum/game_mode/proc/get_all_heads() var/list/heads = list() - for(var/mob/player in player_list) + for(var/mob/player in mob_list) if(player.mind && (player.mind.assigned_role in command_positions)) heads += player.mind return heads diff --git a/code/game/gamemodes/objective.dm b/code/game/gamemodes/objective.dm index e4b02356af2..7d36eec0e48 100644 --- a/code/game/gamemodes/objective.dm +++ b/code/game/gamemodes/objective.dm @@ -78,7 +78,7 @@ datum/objective/mutiny check_completion() if(target && target.current) - if(target.current.stat == DEAD) + if(target.current.stat == DEAD || !ishuman(target.current)) return 1 var/turf/T = get_turf(target.current) if(T && (T.z != 1)) //If they leave the station they count as dead for this diff --git a/code/modules/mob/living/carbon/human/inventory.dm b/code/modules/mob/living/carbon/human/inventory.dm index 69f7cf9501e..2f5bac9e1ba 100644 --- a/code/modules/mob/living/carbon/human/inventory.dm +++ b/code/modules/mob/living/carbon/human/inventory.dm @@ -557,7 +557,7 @@ It can still be worn/put on as normal. source.update_icons() target.update_icons() - if(source) + if(source && target) if(source.machine == target) target.show_inv(source) del(src) \ No newline at end of file diff --git a/html/changelog.html b/html/changelog.html index 2ef787c846c..96ebde7e1b7 100644 --- a/html/changelog.html +++ b/html/changelog.html @@ -46,6 +46,14 @@ Stuff which is in development and not yet visible to players or just code relate should be listed in the changelog upon commit tho. Thanks. --> +
+

August 21, 2012

+

Nodrak updated:

+ +
+

August 16, 2012