mirror of
https://github.com/zoriya/Gamacon.git
synced 2026-05-29 18:03:52 +00:00
Removing highlight of tiles when an entity is on this tile
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user