summaryrefslogtreecommitdiff
path: root/src/net/messageout.cpp
diff options
context:
space:
mode:
authorDuane Bailey <nayryeliab@gmail.com>2005-09-17 21:57:05 +0000
committerDuane Bailey <nayryeliab@gmail.com>2005-09-17 21:57:05 +0000
commitbda21b100542279c7a58d1dd25ff6e3acda3d66c (patch)
tree16c1d4c612709093f84581431afde14d11173d93 /src/net/messageout.cpp
parent3debd1554b39a6a2e790526fa02d56d1b81fda85 (diff)
downloadmana-bda21b100542279c7a58d1dd25ff6e3acda3d66c.tar.gz
mana-bda21b100542279c7a58d1dd25ff6e3acda3d66c.tar.bz2
mana-bda21b100542279c7a58d1dd25ff6e3acda3d66c.tar.xz
mana-bda21b100542279c7a58d1dd25ff6e3acda3d66c.zip
2005-09-17 Duane Bailey <nayryeliab@gmail.com>
* src/netmessagein.cpp, src/net/messageout.cpp, src/net/network.cpp: changed ifdefs to ifs
Diffstat (limited to 'src/net/messageout.cpp')
-rw-r--r--src/net/messageout.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/messageout.cpp b/src/net/messageout.cpp
index b3f74078..ed66f454 100644
--- a/src/net/messageout.cpp
+++ b/src/net/messageout.cpp
@@ -69,7 +69,7 @@ void MessageOut::writeByte(char value)
void MessageOut::writeShort(short value)
{
expand(mPos + sizeof(short));
-#ifdef SDL_BYTEORDER == SDL_BIG_ENDIAN
+#if SDL_BYTEORDER == SDL_BIG_ENDIAN
(*(short *)(mData + mPos)) = DR_SwapTwoBytes(value);
#else
(*(short *)(mData + mPos)) = value;
@@ -81,7 +81,7 @@ void MessageOut::writeShort(short value)
void MessageOut::writeLong(long value)
{
expand(mPos + sizeof(long));
-#ifdef SDL_BYTEORDER == SDL_BIG_ENDIAN
+#if SDL_BYTEORDER == SDL_BIG_ENDIAN
(*(long *)(mData + mPos)) = DR_SwapFourBytes(value);
#else
(*(long *)(mData + mPos)) = value;