diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game.h | 2 | ||||
-rw-r--r-- | src/net/messageout.cpp | 3 | ||||
-rw-r--r-- | src/net/messageout.h | 2 |
3 files changed, 5 insertions, 2 deletions
@@ -25,6 +25,7 @@ #define _TMW_GAME_ #include <iosfwd> +#include "Being.h" #define SPEECH_TIME 80 #define SPEECH_MAX_TIME 100 @@ -32,6 +33,7 @@ #define LOCK 254 #define IDLE 255 +class Being; extern std::string map_path; extern std::string tradePartnerName; extern int fps, frame, current_npc; diff --git a/src/net/messageout.cpp b/src/net/messageout.cpp index aa7f06c4..9c6527e0 100644 --- a/src/net/messageout.cpp +++ b/src/net/messageout.cpp @@ -24,7 +24,8 @@ #include "messageout.h" #include <string> -#include <SDL_net.h> +//#include <SDL_net.h> +#include "win2mac.h" #include "network.h" #include "packet.h" diff --git a/src/net/messageout.h b/src/net/messageout.h index a312cefe..1e6d75ff 100644 --- a/src/net/messageout.h +++ b/src/net/messageout.h @@ -73,7 +73,7 @@ class MessageOut * memory in advance instead of expanding size every time more data is * added. */ - void expand(unsigned int size); + void expand(size_t size); Packet *mPacket; /**< Created packet. */ char *mData; /**< Data building up. */ |