Changeset 34 for trunk/src/trinityrealm

Show
Ignore:
Timestamp:
11/19/08 13:25:37 (17 years ago)
Author:
yumileroy
Message:

[svn] * Removing useless data accidentally committed.
* Applying ImpConfig? patch.
* Note: QUEUE_FOR_GM currently disabled as it's not compatible with the ACE patch. Anyone care to rewrite it?
* Note2: This is untested - I may have done some mistakes here and there. Will try to compile now.

Original author: XTZGZoReX
Date: 2008-10-10 13:37:21-05:00

Location:
trunk/src/trinityrealm
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/trinityrealm/AuthCodes.h

    r2 r34  
    6969// will only support WoW and WoW:TBC 2.4.3 client build 8606... 
    7070 
    71 #define EXPECTED_MANGOS_CLIENT_BUILD        {8606, 0} 
     71//#define EXPECTED_MANGOS_CLIENT_BUILD        {8606, 0} // - commented as builds are set in config 
    7272 
    7373#endif 
  • trunk/src/trinityrealm/AuthSocket.cpp

    r2 r34  
    370370    ///- Check if the client has one of the expected version numbers 
    371371    bool valid_version=false; 
    372     int accepted_versions[]=EXPECTED_MANGOS_CLIENT_BUILD; 
    373     for(int i=0;accepted_versions[i];i++) 
    374         if(ch->build==accepted_versions[i]) 
    375     { 
     372        int MinBuild = sConfig.GetIntDefault("MinBuild", 8606); 
     373        int MaxBuild = sConfig.GetIntDefault("MaxBuild", 8606); 
     374 
     375        if(ch->build >= MinBuild && ch->build <= MaxBuild) 
    376376        valid_version=true; 
    377377        break; 
    378378    } 
     379    else 
     380        valid_version=false; 
    379381 
    380382    /// <ul><li> if this is a valid version 
  • trunk/src/trinityrealm/trinityrealm.conf.dist

    r33 r34  
    115115WrongPass.BanTime = 600 
    116116WrongPass.BanType = 0 
     117 
     118################################################################################################################### 
     119# CLIENT BUILD OPTIONS 
     120# 
     121#       Client Builds: 
     122# 
     123#       MinBuild 
     124#               The minium client build allowed to connect 
     125# 
     126#       MaxBuild 
     127#               The maximum client build allowed to connect 
     128# 
     129################################################################################################################### 
     130 
     131MinBuild = 8606 
     132MaxBuild = 8606