mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-02 16:57:47 +00:00
Fixed discovery information not being used correctly.
This commit is contained in:
parent
56e346b946
commit
95b549a5bf
1 changed files with 2 additions and 2 deletions
|
@ -534,9 +534,9 @@ void Core::Entity::Player::discover( int16_t map_id, int16_t sub_id )
|
||||||
auto info = pExdData->get< Core::Data::Map >(
|
auto info = pExdData->get< Core::Data::Map >(
|
||||||
pExdData->get< Core::Data::TerritoryType >( getCurrentZone()->getTerritoryId() )->map );
|
pExdData->get< Core::Data::TerritoryType >( getCurrentZone()->getTerritoryId() )->map );
|
||||||
if( info->discoveryArrayByte )
|
if( info->discoveryArrayByte )
|
||||||
offset = 4 + 2 * info->discoveryIndex;
|
offset = 5 + 2 * info->discoveryIndex;
|
||||||
else
|
else
|
||||||
offset = 324 + 4 * info->discoveryIndex;
|
offset = 325 + 4 * info->discoveryIndex;
|
||||||
|
|
||||||
int32_t index = offset + sub_id / 8;
|
int32_t index = offset + sub_id / 8;
|
||||||
uint8_t bitIndex = sub_id % 8;
|
uint8_t bitIndex = sub_id % 8;
|
||||||
|
|
Loading…
Add table
Reference in a new issue