summaryrefslogtreecommitdiff
path: root/src/net/network.cpp
diff options
context:
space:
mode:
authorDuane Bailey <nayryeliab@gmail.com>2005-09-22 23:28:58 +0000
committerDuane Bailey <nayryeliab@gmail.com>2005-09-22 23:28:58 +0000
commit6e383d8867081d3ec6b57b4d2f171a4382e83195 (patch)
tree3c658e7e8068f7f0a13c8434dd1fac0e47b43ab1 /src/net/network.cpp
parent59796855784a34e35d09c5cb3750dd5a9b421c10 (diff)
downloadmana-client-6e383d8867081d3ec6b57b4d2f171a4382e83195.tar.gz
mana-client-6e383d8867081d3ec6b57b4d2f171a4382e83195.tar.bz2
mana-client-6e383d8867081d3ec6b57b4d2f171a4382e83195.tar.xz
mana-client-6e383d8867081d3ec6b57b4d2f171a4382e83195.zip
removed win2mac support
Diffstat (limited to 'src/net/network.cpp')
-rw-r--r--src/net/network.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/net/network.cpp b/src/net/network.cpp
index 7a3ecc09..d5a6579b 100644
--- a/src/net/network.cpp
+++ b/src/net/network.cpp
@@ -30,9 +30,6 @@
#include "messagein.h"
#include "../log.h"
-#if SDL_BYTEORDER == SDL_BIG_ENDIAN
-#include "win2mac.h"
-#endif
/** Warning: buffers and other variables are shared,
so there can be only one connection active at a time */
@@ -248,7 +245,7 @@ void flush()
unsigned short readWord(int pos)
{
#if SDL_BYTEORDER == SDL_BIG_ENDIAN
- return DR_SwapTwoBytes((*(unsigned short*)(in+(pos))));
+ return SDL_Swap16((*(unsigned short*)(in+(pos))));
#else
return (*(unsigned short *)(in+(pos)));
#endif