diff options
| -rw-r--r-- | src/scenes/world_map.c | 2 | ||||
| -rw-r--r-- | src/world.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/scenes/world_map.c b/src/scenes/world_map.c index 8446f0e..2d9c32b 100644 --- a/src/scenes/world_map.c +++ b/src/scenes/world_map.c @@ -746,11 +746,9 @@ static s32 world_map_push_invest_panel_item(s32 x, s32 y, s32 w, s32 index, char float btn_y = item_y + ((item_h-btn_size)/2);
button_render(scale, BUTTON_STATIC, 0, item_x, item_y,item_w,item_h);
renderer->render_text(fnt, content_x, content_y, text, COLOR_TEXT);
- // Button decrease simulation speed
if (push_info_panel_button(scale, img_arrow_left, button_left_x, btn_y, btn_size, *fval > 0, false)) {
*fval -= INVESTMENT_INCREMENT;
}
- // Button increase simulation speed
if (push_info_panel_button(scale, img_arrow_right, button_left_x+total_val_editor_w-btn_size, btn_y, btn_size, true, false)) {
*fval += INVESTMENT_INCREMENT;
}
diff --git a/src/world.c b/src/world.c index 84a4c3c..7ff0e19 100644 --- a/src/world.c +++ b/src/world.c @@ -1159,6 +1159,7 @@ static void world_update_employee_happiness(world* world, employee* emp) { world_report_event(world, error_msg, EVENT_TYPE_EMPLOYEE_QUIT, get_world_location_by_id(world, emp->original_location_id));
end_contract_with_employee(world, emp);
+ world->simulation_speed = 0;
}
}
@@ -1240,6 +1241,7 @@ static void end_contract_with_random_employee(world* world) snprintf(error_msg, MAX_EVENT_MESSAGE_LENGTH, "%s quit their job. Their routes need a new assignee!", emp->name);
world_report_event(world, error_msg, EVENT_TYPE_EMPLOYEE_QUIT, get_world_location_by_id(world, emp->original_location_id));
end_contract_with_employee(world, emp);
+ world->simulation_speed = 0;
}
static void end_contract_with_random_job(world* world)
@@ -1464,7 +1466,7 @@ static void world_age_employee(world* world) snprintf(error_msg, MAX_EVENT_MESSAGE_LENGTH, "%s retired at age %d. Their routes need a new assignee!", em->name, RETIREMENT_AGE);
world_report_event(world, error_msg, EVENT_TYPE_EMPLOYEE_QUIT, location);
end_contract_with_employee(world, em);
-
+ world->simulation_speed = 0;
x--;
}
}
|
