--- deliantra/Deliantra-Client/Client.xs 2006/10/08 21:22:29 1.159 +++ deliantra/Deliantra-Client/Client.xs 2006/10/18 12:53:45 1.163 @@ -5,6 +5,7 @@ # include # include # pragma warning(disable:4244) +# pragma warning(disable:4761) #endif #include "EXTERN.h" @@ -39,16 +40,9 @@ # include # include # include -#else - typedef unsigned char uint8_t; - typedef unsigned short uint16_t; - typedef unsigned int uint32_t; - typedef signed char int8_t; - typedef signed short int16_t; - typedef signed int int32_t; #endif -#define OBJ_STR "\xef\xbf\xbc" /* U+FFFC, objetc replacement character */ +#define OBJ_STR "\xef\xbf\xbc" /* U+FFFC, object replacement character */ #define FOW_DARKNESS 32 @@ -796,7 +790,11 @@ void _exit (int retval = 0) CODE: +#ifdef WIN32 + ExitThread (retval); // unclean, please beam me up +#else _exit (retval); +#endif MODULE = CFPlus PACKAGE = CFPlus::Font @@ -1456,8 +1454,8 @@ int last_name; mapface face; - vx = self->x + self->w / 2 - sw / 2 - shift_x; - vy = self->y + self->h / 2 - sh / 2 - shift_y; + vx = self->x + ((self->w - sw) >> 1) - shift_x; + vy = self->y + ((self->h - sh) >> 1) - shift_y; /* int vx = self->vx = self->w >= sw