mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-10 12:59:40 +01:00
Fix compile errors.
This commit is contained in:
parent
9022a74db3
commit
88e7cc8776
@ -138,10 +138,10 @@ void TileMap::_notification(int p_what) {
|
|||||||
|
|
||||||
case NOTIFICATION_RESET_PHYSICS_INTERPOLATION: {
|
case NOTIFICATION_RESET_PHYSICS_INTERPOLATION: {
|
||||||
if (is_visible_in_tree() && is_physics_interpolated_and_enabled()) {
|
if (is_visible_in_tree() && is_physics_interpolated_and_enabled()) {
|
||||||
for (Map<PosKey, Quadrant>::Element *E = quadrant_map.front(); E; E = E->next()) {
|
for (RBMap<PosKey, Quadrant>::Element *E = quadrant_map.front(); E; E = E->next()) {
|
||||||
Quadrant &q = E->get();
|
Quadrant &q = E->get();
|
||||||
for (List<RID>::Element *F = q.canvas_items.front(); F; F = F->next()) {
|
for (List<RID>::Element *F = q.canvas_items.front(); F; F = F->next()) {
|
||||||
VisualServer::get_singleton()->canvas_item_reset_physics_interpolation(F->get());
|
RenderingServer::get_singleton()->canvas_item_reset_physics_interpolation(F->get());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -815,7 +815,7 @@ void TileMap::update_dirty_quadrants() {
|
|||||||
// Reset physics interpolation for any recreated canvas items.
|
// Reset physics interpolation for any recreated canvas items.
|
||||||
if (is_physics_interpolated_and_enabled() && is_visible_in_tree()) {
|
if (is_physics_interpolated_and_enabled() && is_visible_in_tree()) {
|
||||||
for (List<RID>::Element *F = q.canvas_items.front(); F; F = F->next()) {
|
for (List<RID>::Element *F = q.canvas_items.front(); F; F = F->next()) {
|
||||||
VisualServer::get_singleton()->canvas_item_reset_physics_interpolation(F->get());
|
RenderingServer::get_singleton()->canvas_item_reset_physics_interpolation(F->get());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user