Skip to content

Commit

Permalink
patches up Write_Memory() to be nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
san7890 committed Nov 15, 2023
1 parent ecde906 commit 81accc4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions code/modules/mob/living/basic/pets/parrot/poly.dm
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
/mob/living/basic/parrot/poly/Write_Memory(dead, gibbed)
. = ..()
if(!. || memory_saved) // if we die, no more memory
return
return FALSE

if(!dead && (stat != DEAD))
dead = FALSE
Expand All @@ -161,7 +161,7 @@
var/list/file_data = list()

var/list/exportable_speech_buffer = ai_controller.blackboard[BB_EXPORTABLE_STRING_BUFFER_LIST] // should have been populated when we sent the signal out on parent
if(length(exportable_speech_buffer))
if(!!length(exportable_speech_buffer))
file_data["phrases"] = exportable_speech_buffer

if(dead)
Expand Down Expand Up @@ -189,6 +189,7 @@

rustg_file_write(formatted_data, file_path)
memory_saved = TRUE
return TRUE

/mob/living/basic/parrot/poly/setup_headset()
ears = new /obj/item/radio/headset/headset_eng(src)
Expand Down

0 comments on commit 81accc4

Please sign in to comment.