From 4a298fbe7bf20373f08d06c0b08ec40d651417ab Mon Sep 17 00:00:00 2001 From: Hat Kid <6624576+Hat-Kid@users.noreply.github.com> Date: Mon, 6 Jun 2022 00:40:31 +0200 Subject: [PATCH] [discord-rpc] fix status not being updated while indoors (#1421) fix time of day display not being updated if indoors --- game/kernel/kmachine.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/game/kernel/kmachine.cpp b/game/kernel/kmachine.cpp index a949e97cf7..ba526008b8 100644 --- a/game/kernel/kmachine.cpp +++ b/game/kernel/kmachine.cpp @@ -906,6 +906,9 @@ void update_discord_rpc(u32 discord_info) { strcpy(small_image_key, time_of_day_str(time)); strcpy(small_image_text, "Time of day: "); strcat(small_image_text, get_time_of_day(time).c_str()); + } else { + strcpy(small_image_key, ""); + strcpy(small_image_text, ""); } } rpc.smallImageKey = small_image_key;