Fix messages not going to console in deathmatch

This commit is contained in:
Michael Taboada 2024-01-21 11:49:18 -08:00
parent b6d761f67e
commit 8a18a62347

View File

@ -135,7 +135,8 @@ case ${buttonCode} in
'-warp' "$map"
)
fi
exec stdbuf -oL ${gzdoom} ${gameOption} "${flags[@]}" | stdbuf -oL grep "${grepStrings[@]}" | stdbuf -oL sed "${sedStrings[@]}" | spd-say -e
pushd "$doomPath"
exec stdbuf -oL ${gzdoom} ${gameOption} "${flags[@]}" | while IFS= read -r l ; do echo "$l" | { grep "${grepStrings[@]}" | sed "${sedStrings[@]}" | spd-say -e; } || echo "$l";done
;;
2)
# Exit was pressed, so exit.