Changeset 110 for binary-improvements


Ignore:
Timestamp:
Jul 26, 2014, 6:11:57 PM (5 years ago)
Author:
alloc
Message:

fixes

Location:
binary-improvements/7dtd-server-fixes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/7dtd-server-fixes/src/CommonMappingFunctions.cs

    r107 r110  
    4444        public static int GetClientID (ClientInfo _ci)
    4545        {
    46                 if (_ci != null)
    47                         return _ci.clientId;
    48                 else
    49                         return -1;
     46                if (_ci != null) {
     47                        if (GetConnectionManager ().connectedClients.ContainsKey (_ci.clientId))
     48                                return _ci.clientId;
     49                }
     50                return -1;
    5051        }
    5152
Note: See TracChangeset for help on using the changeset viewer.