Skip to content

Commit

Permalink
Fixed shop plants not being centered
Browse files Browse the repository at this point in the history
  • Loading branch information
agg23 committed Feb 28, 2021
1 parent 76fdae2 commit dee5085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/shop/plants/render.mfk
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void draw_shop_plant(byte row, byte column) {
type = shop_plant_tanks[row * SHOP_COLUMN_COUNT + column]

temp = plant_expected_width[type]
draw_plant_of_type(type, plant_shop_size[type], x - plant_min_x + ((8 - temp) >> 1), true, temp, y + 6)
draw_plant_of_type(type, plant_shop_size[type], x - plant_min_x + ((8 - temp) >> 1) - 1, true, temp, y + 6)

draw_plant_name(type, x - 1, y + 8, 8)

Expand Down

0 comments on commit dee5085

Please sign in to comment.