From dd35386012ff0cfee35dfab20610f7a317559bc6 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 11 Dec 2021 19:33:05 +0100 Subject: [PATCH] Temp fix for unused variable. --- rtile_map.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rtile_map.cpp b/rtile_map.cpp index 52ebe98..9bc8c90 100644 --- a/rtile_map.cpp +++ b/rtile_map.cpp @@ -1371,18 +1371,18 @@ void RTileMap::draw_tile(RID p_canvas_item, Vector2i p_position, const Refget_runtime_tile_texture_region(p_atlas_coords, 0); tex->draw_rect_region(p_canvas_item, dest_rect, source_rect, modulate, transpose, Ref(), p_tile_set->is_uv_clipping()); } else { - real_t speed = atlas_source->get_tile_animation_speed(p_atlas_coords); - real_t animation_duration = atlas_source->get_tile_animation_total_duration(p_atlas_coords) / speed; - real_t time = 0.0; + //TODO + //real_t speed = atlas_source->get_tile_animation_speed(p_atlas_coords); + //real_t animation_duration = atlas_source->get_tile_animation_total_duration(p_atlas_coords) / speed; + //real_t time = 0.0; for (int frame = 0; frame < atlas_source->get_tile_animation_frames_count(p_atlas_coords); frame++) { - real_t frame_duration = atlas_source->get_tile_animation_frame_duration(p_atlas_coords, frame) / speed; - //TODO + //real_t frame_duration = atlas_source->get_tile_animation_frame_duration(p_atlas_coords, frame) / speed; //VisualServer::get_singleton()->canvas_item_add_animation_slice(p_canvas_item, animation_duration, time, time + frame_duration, 0.0); Rect2i source_rect = atlas_source->get_runtime_tile_texture_region(p_atlas_coords, frame); tex->draw_rect_region(p_canvas_item, dest_rect, source_rect, modulate, transpose, Ref(), p_tile_set->is_uv_clipping()); - time += frame_duration; + //time += frame_duration; } //TODO //VisualServer::get_singleton()->canvas_item_add_animation_slice(p_canvas_item, 1.0, 0.0, 1.0, 0.0);