Fixing the 'name requests work at any distance' exploit (bugreport:3206).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13858 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
ultramage 2009-06-07 16:16:06 +00:00
parent db7a45d725
commit b2223e43f5

View File

@ -8327,6 +8327,9 @@ void clif_parse_GetCharNameRequest(int fd, struct map_session_data *sd)
if( bl == NULL ) if( bl == NULL )
return; // Lagged clients could request names of already gone mobs/players. [Skotlex] return; // Lagged clients could request names of already gone mobs/players. [Skotlex]
if( sd->bl.m != bl->m || !check_distance_bl(&sd->bl, bl, AREA_SIZE) )
return; // Block namerequests past view range
// 'see people in GM hide' cheat detection // 'see people in GM hide' cheat detection
/* disabled due to false positives (network lag + request name of char that's about to hide = race condition) /* disabled due to false positives (network lag + request name of char that's about to hide = race condition)
sc = status_get_sc(bl); sc = status_get_sc(bl);