From f1ee297b75dfdf74ae5ff72d4fcd5fca70143d21 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 1 Dec 2024 16:38:39 +0100 Subject: close #42 --- src/world.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/world.c b/src/world.c index 111b3a3..9a0b4ea 100644 --- a/src/world.c +++ b/src/world.c @@ -559,7 +559,7 @@ world* world_create_new() world* new_world = mem_alloc(sizeof(world)); new_world->simulation_time = time(NULL); new_world->start_year = gmtime(&new_world->simulation_time)->tm_year; - new_world->money = 100000.0f; + new_world->money = 10000000.0f; new_world->next_id = 1; new_world->active_jobs = array_create(sizeof(active_job)); new_world->investments = (company_investments){0}; @@ -1057,7 +1057,7 @@ static void world_update_active_jobs(world* world) e->active_job_id = INVALID_ID; // Employee is scheduled to stay at location - if (job->stay_at_destination) { + if (job->stay_at_destination && orig_location->id != e->current_location_id) { array_push(&endpoints.dest->employees, &e); } // Employee started the job from an external location and are returning -- cgit v1.2.3-70-g09d2