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

[svn] DynamicObject? should only be visible for caster if it is not in distance. However, I do not think this will fix the bug that dynamic object update freezes the server.

Original author: megamage
Date: 2008-11-15 11:56:59-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/trinitycore/RASocket.cpp

    r149 r237  
    1111 * This program is distributed in the hope that it will be useful, 
    1212 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
     13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1414 * GNU General Public License for more details. 
    1515 * 
    1616 * You should have received a copy of the GNU General Public License 
    1717 * along with this program; if not, write to the Free Software 
    18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
     18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
    1919 */ 
    2020 
     
    198198 
    199199                    QueryResult *check = loginDatabase.PQuery( 
    200                                                 "SELECT 1 FROM account WHERE username = '%s' AND sha_pass_hash=SHA1(CONCAT(username,':','%s'))", 
    201                                                 login.c_str(), pw.c_str()); 
     200                        "SELECT 1 FROM account WHERE username = '%s' AND sha_pass_hash=SHA1(CONCAT(username,':','%s'))", 
     201                        login.c_str(), pw.c_str()); 
    202202 
    203203                    if(check) 
     
    245245    #ifdef RA_CRYPT 
    246246 
    247         char *megabuffer=strdup(szText); 
     247    char *megabuffer=strdup(szText); 
    248248    unsigned int sz=strlen(megabuffer); 
    249249    Encrypt(megabuffer,sz); 
    250         send(r,megabuffer,sz,0); 
     250    send(r,megabuffer,sz,0); 
    251251    delete [] megabuffer; 
    252      
    253         #else 
     252 
     253    #else 
    254254 
    255255    unsigned int sz=strlen(szText);