Skip to content

Commit

Permalink
Use logger for broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Dec 13, 2024
1 parent c178097 commit 0f0979f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/data/logger.asm
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ s_logger db "[logger] "
l_s_logger equ $ - s_logger

label_chat db "chat", 0x00
label_broadcast db "broadcast", 0x00
6 changes: 3 additions & 3 deletions src/on_game.asm
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ on_game_msg_sv_motd:
on_game_msg_sv_broadcast:
; on_game_msg_sv_broadcast [rax]
; rax = message payload
print_label s_broadcast
call get_string
print_c_str rax
call print_newline
mov rdi, rax
mov rax, label_broadcast
call log_info
jmp on_game_message_end

on_game_msg_sv_chat:
Expand Down

0 comments on commit 0f0979f

Please sign in to comment.