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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 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