From dee5085ea9cb85ef93cad48d56b5f00d7e1feafd Mon Sep 17 00:00:00 2001 From: agg23 Date: Sun, 28 Feb 2021 09:25:20 -0800 Subject: [PATCH] Fixed shop plants not being centered --- ui/shop/plants/render.mfk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/shop/plants/render.mfk b/ui/shop/plants/render.mfk index 7f7bda0..539ec06 100644 --- a/ui/shop/plants/render.mfk +++ b/ui/shop/plants/render.mfk @@ -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)