--- deliantra/Deliantra-Client/Client.xs 2006/04/12 21:01:45 1.24 +++ deliantra/Deliantra-Client/Client.xs 2006/04/12 21:20:42 1.25 @@ -3,6 +3,7 @@ #include "XSUB.h" #include +#include #include #include @@ -12,10 +13,6 @@ #include #include -#include -#include -#include - #include #include #include @@ -159,6 +156,16 @@ SDL_FreeSurface (surface2); } +void +fatal (char *message) + CODE: +#ifdef WIN32 + MessageBox (0, message, "Crossfire+ Fatal Error", MB_OK | MB_ICONERROR | MB_SETFOREGROUND); +#else + fprintf (stderr, "%s\n", message); +#endif + exit (1); + MODULE = CFClient PACKAGE = CFClient::Layout CFClient::Layout