From 8f6123730efe4fb57d9895e032967fefb0a00d40 Mon Sep 17 00:00:00 2001 From: skotlex Date: Wed, 31 May 2006 14:06:22 +0000 Subject: - Removed typedef bool from socket.h and included cbasetypes.c instead. - Cleaned up and corrected the calculation of hit/flee/cri/lucky dodge in status_calc_bl. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6890 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/socket.h | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) (limited to 'src/common/socket.h') diff --git a/src/common/socket.h b/src/common/socket.h index ba27e34a8..a6a0fb191 100644 --- a/src/common/socket.h +++ b/src/common/socket.h @@ -16,6 +16,7 @@ #endif #include #include "malloc.h" +#include "cbasetypes.h" extern time_t last_tick; extern time_t stall_time; @@ -121,41 +122,12 @@ extern struct socket_data *session[FD_SETSIZE]; extern int fd_max; - - - - -///////////////////////////// -// for those still not building c++ -#ifndef __cplusplus -////////////////////////////// - -// boolean types for C -typedef int bool; -#define false (1==0) -#define true (1==1) - -////////////////////////////// -#endif // not cplusplus -////////////////////////////// - - - ////////////////////////////////// // some checking on sockets extern bool session_isValid(int fd); extern bool session_isActive(int fd); ////////////////////////////////// - - - - - - - - - // Function prototype declaration int make_listen_port(int); -- cgit v1.2.3-60-g2f50