diff options
Diffstat (limited to 'src/world.c')
| -rw-r--r-- | src/world.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/world.c b/src/world.c index ae09d79..b95e0d9 100644 --- a/src/world.c +++ b/src/world.c @@ -634,7 +634,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 = 10000000.0f;
+ new_world->money = 100000.0f;
new_world->next_id = 1;
new_world->active_jobs = array_create(sizeof(active_job));
new_world->investments = (company_investments){10000,10000,10000,10000};
@@ -1529,7 +1529,7 @@ static void world_update_location_scores(world* world) for (s32 i = 0; i < world->locations.length; i++)
{
world_location* location = array_at(&world->locations, i);
- location->is_accessible = true;//world_check_location_accessibility(location, location, 1, 0);
+ location->is_accessible = world_check_location_accessibility(location, location, 1, 0);
if (!location->is_owned) continue;
@@ -1754,11 +1754,12 @@ static void draw_dotted_line(float x1, float y1, float x2, float y2, color line_ float px2 = x1 + (x2-x1) * percentage;
float py2 = y1 + (y2-y1) * percentage;
- if (!world_map_location_is_in_sun((vec2f){px1, py1})) {
- line_clr = rgba(255,255,0, 50);
+ color clr = line_clr;
+ if (!world_map_location_is_in_sun((vec2f){px2, py2})) {
+ clr = rgba(255,255,0, 50);
}
- renderer->render_line(px1, py1, px2, py2, 2, line_clr);
+ renderer->render_line(px1, py1, px2, py2, 2, clr);
}
}
|
