diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-23 22:01:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-23 22:01:44 +0300 |
commit | 3c404128c4669a1f4f190e20a89553677717fc50 (patch) | |
tree | 2db4e5031089c800c4e00fd6244e578f44a7c910 /src/net/ea | |
parent | 89b267d6d73bbc59f7c313b8a22b97fbb27f99a8 (diff) | |
download | manaverse-3c404128c4669a1f4f190e20a89553677717fc50.tar.gz manaverse-3c404128c4669a1f4f190e20a89553677717fc50.tar.bz2 manaverse-3c404128c4669a1f4f190e20a89553677717fc50.tar.xz manaverse-3c404128c4669a1f4f190e20a89553677717fc50.zip |
Add missing comments into defines.
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/network.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/net/ea/network.cpp b/src/net/ea/network.cpp index 15a45fde0..571fa2ebb 100644 --- a/src/net/ea/network.cpp +++ b/src/net/ea/network.cpp @@ -37,7 +37,7 @@ #ifndef SDL_BYTEORDER #error missing SDL_endian.h -#endif +#endif // SDL_BYTEORDER extern unsigned int mLastHost; @@ -353,10 +353,11 @@ uint16_t Network::readWord(const int pos) const #if SDL_BYTEORDER == SDL_BIG_ENDIAN return SDL_Swap16(*reinterpret_cast<uint16_t*>( mInBuffer + CAST_SIZE(pos))); -#else +#else // SDL_BYTEORDER == SDL_BIG_ENDIAN + return (*reinterpret_cast<uint16_t*>( mInBuffer + CAST_SIZE(pos))); -#endif +#endif // SDL_BYTEORDER == SDL_BIG_ENDIAN } void Network::fixSendBuffer() |