[DiscordArchive] in RemovePlayerFromMap ?
[DiscordArchive] in RemovePlayerFromMap ?
Archived author: OUTRAKE • Posted: 2025-01-10T13:39:10.404000+00:00
Original source
```
void InstanceMap::RemovePlayerFromMap(Player* player, bool remove)
{
..
Map::RemovePlayerFromMap(player, remove);
// If remove == true - player already deleted.
if (!remove)
player->SetPendingBind(0, 0);
if (instance_data)
instance_data->OnPlayerLeave(player);
}
```
Archived author: OUTRAKE • Posted: 2025-01-10T13:39:11.993000+00:00
Original source
like that
Archived author: OUTRAKE • Posted: 2025-01-10T13:39:44.509000+00:00
Original source
let me check
Archived author: OUTRAKE • Posted: 2025-01-10T13:43:01.410000+00:00
Original source
yea it works
Archived author: OUTRAKE • Posted: 2025-01-10T13:56:21.972000+00:00
Original source
nyeriah can you help with code refactor to optimize that pr?
Archived author: Nyeriah • Posted: 2025-01-10T14:00:27.391000+00:00
Original source
we can merge it if its functional and optmize it later if its just codestyle/DRY
Archived author: OUTRAKE • Posted: 2025-01-10T14:03:48.866000+00:00
Original source
Yea its functional rn, codestyle keep giving error about trailing spaces idk why
Archived author: Nyeriah • Posted: 2025-01-10T14:10:12.670000+00:00
Original source
yeah I am not seeing those white spaces myself
Archived author: Nyeriah • Posted: 2025-01-10T14:12:15.906000+00:00
Original source
line endings maybe
Archived author: Nyeriah • Posted: 2025-01-10T14:12:24.572000+00:00
Original source
not sure how that would happen though