diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-08-17 01:24:49 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-08-17 01:24:49 -0300 |
| commit | 3cb08df67d1dcb97ffe471f167c6af6fad84de6e (patch) | |
| tree | 6b4c3432616418c39fa26fa25ba4895fdeeec87c /src/communication.cc | |
| parent | 8082c228c5d618e6f865f76b4d0518c2fde573ec (diff) | |
| download | game-3cb08df67d1dcb97ffe471f167c6af6fad84de6e.tar.gz game-3cb08df67d1dcb97ffe471f167c6af6fad84de6e.zip | |
fix RETRIEVE action, used with roping
Diffstat (limited to 'src/communication.cc')
| -rw-r--r-- | src/communication.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/communication.cc b/src/communication.cc index f9a1753..4b8421c 100644 --- a/src/communication.cc +++ b/src/communication.cc @@ -928,7 +928,7 @@ bool HandleLogin(TConnection *Connection){ RSAMutex.up(); error("HandleLogin: Fehler beim Entschlüsseln.\n"); SendLoginMessage(Connection, 20, - "Login failed due to corrupt data.",-1); + "Login failed due to corrupt data.", -1); return false; } RSAMutex.up(); @@ -1394,16 +1394,16 @@ bool OpenSocket(void){ return false; } - struct linger linger = {}; - linger.l_onoff = 0; - linger.l_linger = 0; - if(setsockopt(TCPSocket, SOL_SOCKET, SO_LINGER, &linger, sizeof(linger)) == -1){ + struct linger Linger = {}; + Linger.l_onoff = 0; + Linger.l_linger = 0; + if(setsockopt(TCPSocket, SOL_SOCKET, SO_LINGER, &Linger, sizeof(Linger)) == -1){ error("LaunchServer: Socket wurde nicht auf LINGER=0 gesetzt.\n"); return false; } - int reuseaddr = 1; - if(setsockopt(TCPSocket, SOL_SOCKET, SO_REUSEADDR, &reuseaddr, sizeof(reuseaddr)) == -1){ + int ReuseAddr = 1; + if(setsockopt(TCPSocket, SOL_SOCKET, SO_REUSEADDR, &ReuseAddr, sizeof(ReuseAddr)) == -1){ error("LaunchServer: Fehler %d bei setsockopt.\n", errno); return false; } |
