Skip to content

Commit

Permalink
[MIRROR] Fixes the typing indicator [MDB IGNORE] (#1011)
Browse files Browse the repository at this point in the history
* Fixes the typing indicator (#80153)

---------

Co-authored-by: SkyratBot <[email protected]>
Co-authored-by: GoldenAlpharex <[email protected]>
  • Loading branch information
3 people authored Dec 7, 2023
1 parent a7b5732 commit 615f261
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/datums/brain_damage/imaginary_friend.dm
Original file line number Diff line number Diff line change
Expand Up @@ -408,13 +408,13 @@
add_image_to_clients(active_typing_indicator, group_clients())

/mob/camera/imaginary_friend/remove_typing_indicator()
REMOVE_TRAIT(src, TRAIT_THINKING_IN_CHARACTER, CURRENTLY_TYPING_TRAIT)
if(!active_typing_indicator)
return FALSE
remove_image_from_clients(active_typing_indicator, group_clients())
active_typing_indicator = null

/mob/camera/imaginary_friend/remove_all_indicators()
REMOVE_TRAIT(src, TRAIT_THINKING_IN_CHARACTER, CURRENTLY_TYPING_TRAIT)
remove_thinking_indicator()
remove_typing_indicator()

Expand Down
2 changes: 1 addition & 1 deletion code/modules/tgui_input/say_modal/typing.dm
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
play_fov_effect(src, 6, "talk", ignore_self = TRUE)

/mob/living/remove_thinking_indicator()
REMOVE_TRAIT(src, TRAIT_THINKING_IN_CHARACTER, CURRENTLY_TYPING_TRAIT)
if(!active_thinking_indicator)
return FALSE
cut_overlay(active_thinking_indicator)
Expand All @@ -104,6 +103,7 @@
active_typing_indicator = null

/mob/living/remove_all_indicators()
REMOVE_TRAIT(src, TRAIT_THINKING_IN_CHARACTER, CURRENTLY_TYPING_TRAIT)
remove_thinking_indicator()
remove_typing_indicator()

0 comments on commit 615f261

Please sign in to comment.