diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-12-01 16:38:39 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-12-01 16:38:39 +0100 |
| commit | f1ee297b75dfdf74ae5ff72d4fcd5fca70143d21 (patch) | |
| tree | b5737287b001e97ffa129dec7113754cae1d432c | |
| parent | 9a3b6aff943fb16a3e94faaff2517f2b841240f3 (diff) | |
close #42
| -rw-r--r-- | src/world.c | 4 |
1 files changed, 2 insertions, 2 deletions
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
|
