little change

This commit is contained in:
Shadow15510 2021-11-05 16:39:45 +01:00
parent 3fed055c92
commit ea342532a0
1 changed files with 10 additions and 2 deletions

View File

@ -10,6 +10,16 @@ struct building menu_1(struct calccity *calccity, struct camera *camera, struct
extern const bopti_image_t img_fn_1;
int key = 0, x = 0, y = 0;
struct building default_building = {
.name = "",
.id = (unsigned char []){0},
.cost = 0,
.size = {1, 1},
.stat = {0},
.taxes = {0},
.funds = {0}
};
while (key != KEY_ALPHA)
{
dclear(C_WHITE);
@ -22,8 +32,6 @@ struct building menu_1(struct calccity *calccity, struct camera *camera, struct
drect(9 * x + 4, 9 * y + 12, 9 * x + 4 + 7, 9 * y + 12 + 7, C_INVERT);
dupdate();
struct building default_building = buildings[x + 3 * y];
key = rtc_key();
switch (key)