summaryrefslogtreecommitdiff
path: root/src/net/messageout.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2011-06-03 11:19:20 -0600
committerJared Adams <jaxad0127@gmail.com>2011-06-03 12:08:26 -0600
commit3c0cb0e058324ee1d3116017f14387e9a6004442 (patch)
treeb9c00c3fdf1dff7e4c07bf4f8c83c2e7bc03c0f7 /src/net/messageout.cpp
parent894038adf52a3e2b42542239a147d6c1cc1ad204 (diff)
downloadMana-3c0cb0e058324ee1d3116017f14387e9a6004442.tar.gz
Mana-3c0cb0e058324ee1d3116017f14387e9a6004442.tar.bz2
Mana-3c0cb0e058324ee1d3116017f14387e9a6004442.tar.xz
Mana-3c0cb0e058324ee1d3116017f14387e9a6004442.zip
Replace SDL_types.h with cstdint
This required moving to C++0x, so it does that too, and fixes a few errors with that. Reviewed-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
Diffstat (limited to 'src/net/messageout.cpp')
-rw-r--r--src/net/messageout.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/net/messageout.cpp b/src/net/messageout.cpp
index 5663e1df..814d7094 100644
--- a/src/net/messageout.cpp
+++ b/src/net/messageout.cpp
@@ -22,18 +22,17 @@
#include "net/messageout.h"
#include <cstring>
-#include <string>
namespace Net {
-MessageOut::MessageOut(short id):
+MessageOut::MessageOut(uint16_t id):
mData(0),
mDataSize(0),
mPos(0)
{
}
-void MessageOut::writeInt8(Uint8 value)
+void MessageOut::writeInt8(uint8_t value)
{
expand(1);
mData[mPos] = value;