diff options
author | Duane Bailey <nayryeliab@gmail.com> | 2005-09-17 17:20:15 +0000 |
---|---|---|
committer | Duane Bailey <nayryeliab@gmail.com> | 2005-09-17 17:20:15 +0000 |
commit | 5cc40aed713f6028656fd35ed710d351fcf1a347 (patch) | |
tree | a967fc14d97e2f3567ec0827cbfadb257f4181d4 /src | |
parent | db1f671668a615c5e1a4f48009708407bbac8d8c (diff) | |
download | mana-5cc40aed713f6028656fd35ed710d351fcf1a347.tar.gz mana-5cc40aed713f6028656fd35ed710d351fcf1a347.tar.bz2 mana-5cc40aed713f6028656fd35ed710d351fcf1a347.tar.xz mana-5cc40aed713f6028656fd35ed710d351fcf1a347.zip |
2005-09-17 Duane Bailey nayryeliab@gmail.com
* game.h: fixed bugs created by matt
* messageout.h: fixed bug concering expand arguments
* mesageout.cpp: adding include to win2mac.h and commented out SDL_net
include; caused bugs on macs
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. */ |