Skip to content

Commit

Permalink
do not print empty motd
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Aug 25, 2024
1 parent df35642 commit 279a41b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/on_game.asm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 279a41b

Please sign in to comment.