- Timestamp:
- 06/06/18 23:17:01 (7 years ago)
- Location:
- ps/trunk/source/network
- Files:
-
- 2 edited
-
NetSession.cpp (modified) (4 diffs)
-
NetSession.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/source/network/NetSession.cpp
r19703 r21841 1 /* Copyright (C) 201 7Wildfire Games.1 /* Copyright (C) 2018 Wildfire Games. 2 2 * This file is part of 0 A.D. 3 3 * … … 34 34 35 35 CNetClientSession::CNetClientSession(CNetClient& client) : 36 m_Client(client), m_FileTransferer(this), m_Host( NULL), m_Server(NULL), m_Stats(NULL)36 m_Client(client), m_FileTransferer(this), m_Host(nullptr), m_Server(nullptr), m_Stats(nullptr), m_IsLocalClient(false) 37 37 { 38 38 } … … 81 81 m_Host = host; 82 82 m_Server = peer; 83 m_IsLocalClient = isLocalClient; 83 84 84 85 // Prevent the local client of the host from timing out too quickly. … … 201 202 } 202 203 203 204 205 204 CNetServerSession::CNetServerSession(CNetServerWorker& server, ENetPeer* peer) : 206 m_Server(server), m_FileTransferer(this), m_Peer(peer) 205 m_Server(server), m_FileTransferer(this), m_Peer(peer), m_IsLocalClient(false), m_HostID(0), m_GUID(), m_UserName() 207 206 { 208 207 } -
ps/trunk/source/network/NetSession.h
r19703 r21841 1 /* Copyright (C) 201 7Wildfire Games.1 /* Copyright (C) 2018 Wildfire Games. 2 2 * This file is part of 0 A.D. 3 3 * … … 116 116 ENetPeer* m_Server; 117 117 CNetStatsTable* m_Stats; 118 119 bool m_IsLocalClient; 118 120 }; 119 121
Note:
See TracChangeset
for help on using the changeset viewer.
