Removing highlight of tiles when an entity is on this tile

This commit is contained in:
Anonymus Raccoon
2020-04-29 12:42:21 +02:00
parent 8493449a02
commit d1a8a904a4
+1 -1
View File
@@ -97,7 +97,7 @@ struct vertex_component *info, float dt)
tl = get_tile_from_pos(info, gc_vector2_add(pos, *(gc_vector2 *)&w));
for (i = 0; info->map[i].corners[0]; i++);
for (i--; i >= 0; i--) {
sfmlrenderer_manage_hovered_tile(this, &info->map[i] == tl || info->map[i].entity);
sfmlrenderer_manage_hovered_tile(this, &info->map[i] == tl);
sfmlrenderer_draw_tile(engine, pos, &info->map[i], dt);
}
}