aboutsummaryrefslogtreecommitdiff
path: root/src/server/client.cc
blob: 6d3b5b04fae09eaf2dd5e1c2cdb88ddb23998751 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "server/client.hh"

namespace server {

bool client::is_in_pvs(const client& other) const noexcept {
    if (!other.has_initialised()) {
        return false;
    }
    if (!this->chunks.contains(other.get_player().get_chunk_pos())) {
        return false;
    }
    return true;
}

} // namespace server