From 279a41b0489e35dd8066535134ec5f4e3a6a1bf8 Mon Sep 17 00:00:00 2001 From: ChillerDragon Date: Sun, 25 Aug 2024 15:25:32 +0800 Subject: [PATCH] do not print empty motd --- src/on_game.asm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/on_game.asm b/src/on_game.asm index cccaf21..233c72f 100644 --- a/src/on_game.asm +++ b/src/on_game.asm @@ -88,8 +88,11 @@ on_game_msg_null: on_game_msg_sv_motd: ; on_game_msg_sv_motd [rax] ; rax = message payload - print_label s_motd call get_string + cmp byte [rax], 0x00 + je on_game_message_end + + print_label s_motd print_c_str rax call print_newline jmp on_game_message_end