Add drv_get_aniamtion_queue hashes
This commit is contained in:
@@ -202,7 +202,6 @@ void World::tangible_delete(int64_t id) {
|
||||
}
|
||||
|
||||
void World::get_near(PlaneScan &scan, util::IdVector *into) const {
|
||||
uint32_t hash1 = eng::memhash();
|
||||
into->clear();
|
||||
// If 'near' is set, update the plane and center.
|
||||
int64_t actor_id = scan.near();
|
||||
@@ -216,8 +215,6 @@ void World::get_near(PlaneScan &scan, util::IdVector *into) const {
|
||||
scan.set_center(util::XYZ(pi.x(), pi.y(), pi.z()));
|
||||
}
|
||||
plane_map_.scan(scan, into);
|
||||
uint32_t hash2 = eng::memhash();
|
||||
assert(hash1 == hash2);
|
||||
}
|
||||
|
||||
void World::get_near(int64_t player_id, float radius, bool exclude_nowhere, bool omit_player, bool sorted, util::IdVector *into) const {
|
||||
@@ -230,6 +227,17 @@ void World::get_near(int64_t player_id, float radius, bool exclude_nowhere, bool
|
||||
get_near(scan, into);
|
||||
}
|
||||
|
||||
void World::get_animation_queue_hashes(uint32_t count, const int64_t *ids, uint64_t *hashes) {
|
||||
for (int i = 0; i < int(count); i++) {
|
||||
Tangible *tan = tangible_get(ids[i]);
|
||||
if (tan == 0) {
|
||||
hashes[i] = 0;
|
||||
} else {
|
||||
hashes[i] = tan->anim_queue_.get_final_hash();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
World::Redirects World::fetch_redirects() {
|
||||
World::Redirects result = std::move(redirects_);
|
||||
redirects_.clear();
|
||||
|
||||
Reference in New Issue
Block a user