* Fix a magic number (28) supposedly representing enum value NET_LEAVING (which is 18)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3423 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2008-01-09 23:07:36 +00:00
parent 387b65ba65
commit 73d329fde8
1 changed files with 2 additions and 2 deletions

View File

@ -200,13 +200,13 @@ BOOL NETlogEntry(const char *str,UDWORD a,UDWORD b)
// Guarantee to nul-terminate
buf[sizeof(buf) - 1] = '\0';
if (a == 28) // NET_LEAVING
if (a == 18) // NET_LEAVING
// Write a starry line above NET_LEAVING messages
PHYSFS_write(pFileHandle, star_line, strlen(star_line), 1);
PHYSFS_write(pFileHandle, buf, strlen( buf ), 1);
if (a == 28) // NET_LEAVING
if (a == 18) // NET_LEAVING
// Write a starry line below NET_LEAVING messages
PHYSFS_write(pFileHandle, star_line, strlen(star_line), 1);