Skip to content

Commit

Permalink
Trap the ASCII_NEWLINE to only work in non MP games, to prevent abuse.
Browse files Browse the repository at this point in the history
  • Loading branch information
buginator committed Dec 9, 2010
1 parent d7af165 commit b1495d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/ivis_opengl/textdraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "lib/ivis_common/piepalette.h"
#include "lib/ivis_common/textdraw.h"
#include "lib/ivis_common/bitimage.h"
#include "src/multiplay.h"

#ifdef WZ_OS_MAC
# include <CoreFoundation/CoreFoundation.h>
Expand Down Expand Up @@ -524,7 +525,10 @@ int iV_DrawFormattedText(const char* String, UDWORD x, UDWORD y, UDWORD Width, U
else if (*curChar == ASCII_NEWLINE
|| *curChar == '\n')
{
NewLine = true;
if (!bMultiPlayer)
{
NewLine = true;
}
++curChar;
}

Expand Down

0 comments on commit b1495d4

Please sign in to comment.