Skip to content

Commit

Permalink
Refactor PrintQueue function to fix message truncation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
altair-sossai committed Oct 18, 2024
1 parent f319084 commit 803a868
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
Binary file modified addons/sourcemod/plugins/optional/l4d2_queue.smx
Binary file not shown.
7 changes: 0 additions & 7 deletions addons/sourcemod/scripting/l4d2_queue.sp
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,6 @@ void PrintQueue(int target)
Format(output, sizeof(output), "%s {olive}%dº {default}%N", output, position, client);

position++;

if (strlen(output) > MAX_MESSAGE_LENGTH)
{
output[MAX_MESSAGE_LENGTH] = '\0';
Format(output, sizeof(output), "%s...", output);
break;
}
}

if (target == 0)
Expand Down

0 comments on commit 803a868

Please sign in to comment.