summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/mmo.h5
-rw-r--r--src/common/socket.c6
2 files changed, 4 insertions, 7 deletions
diff --git a/src/common/mmo.h b/src/common/mmo.h
index 4e50e7ca1..d971e96e6 100644
--- a/src/common/mmo.h
+++ b/src/common/mmo.h
@@ -65,9 +65,6 @@
#define MIN_STAR 0
#define MAX_STAR 3
-#define MIN_PORTAL_MEMO 0
-#define MAX_PORTAL_MEMO 2
-
#define MAX_STATUS_TYPE 5
#define WEDDING_RING_M 2634
@@ -83,7 +80,7 @@
#define MAP_NAME_LENGTH_EXT (MAP_NAME_LENGTH + 4)
#define MAX_FRIENDS 40
-#define MAX_MEMOPOINTS 10
+#define MAX_MEMOPOINTS 3
//Size of the fame list arrays.
#define MAX_FAME_LIST 10
diff --git a/src/common/socket.c b/src/common/socket.c
index 7759a67ee..5fb9ead9e 100644
--- a/src/common/socket.c
+++ b/src/common/socket.c
@@ -171,7 +171,7 @@ int recv_to_fifo(int fd)
if( len == SOCKET_ERROR )
{//An exception has occured
if( s_errno != S_EWOULDBLOCK ) {
- ShowDebug("recv_to_fifo: code %d, closing connection #%d\n", s_errno, fd);
+ //ShowDebug("recv_to_fifo: code %d, closing connection #%d\n", s_errno, fd);
set_eof(fd);
}
return 0;
@@ -201,9 +201,9 @@ int send_from_fifo(int fd)
len = send(fd, (const char *) session[fd]->wdata, (int)session[fd]->wdata_size, 0);
if( len == SOCKET_ERROR )
- {
+ {//An exception has occured
if( s_errno != S_EWOULDBLOCK ) {
- ShowDebug("send_from_fifo: error %d, ending connection #%d\n", s_errno, fd);
+ //ShowDebug("send_from_fifo: error %d, ending connection #%d\n", s_errno, fd);
session[fd]->wdata_size = 0; //Clear the send queue as we can't send anymore. [Skotlex]
set_eof(fd);
}