diff options
Diffstat (limited to 'src/scenery.c')
| -rw-r--r-- | src/scenery.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scenery.c b/src/scenery.c index 9e647d6..bf8afe6 100644 --- a/src/scenery.c +++ b/src/scenery.c @@ -10,8 +10,8 @@ static void update_render_path(world* world, boat_route *route) float percentage = route->current_point_duration/time_between_points;
- vec2f start_pos = {area.x + (prev_point.x*area.w), area.y + (prev_point.y*area.h)};
- vec2f end_pos = {area.x + (next_point.x*area.w), area.y + (next_point.y*area.h)};
+ vec2f start_pos = {area.x/zoom + (prev_point.x*area.w), area.y/zoom + (prev_point.y*area.h)};
+ vec2f end_pos = {area.x/zoom + (next_point.x*area.w), area.y/zoom + (next_point.y*area.h)};
float currx = start_pos.x - (start_pos.x - end_pos.x)*percentage;
float curry = start_pos.y - (start_pos.y - end_pos.y)*percentage;
@@ -21,7 +21,7 @@ static void update_render_path(world* world, boat_route *route) float rad = atan2(end_pos.y-start_pos.y, end_pos.x-start_pos.x);
gl_render_set_rotation(-rad);
- renderer->render_image(img_boat, map_pos.x-3, map_pos.y-3, 6, 6);
+ renderer->render_image(img_boat, map_pos.x-3, map_pos.y-3, 3*zoom, 3*zoom);
gl_render_set_rotation(0.0f);
route->current_point_duration += (frame_delta*1000.0f)*world->simulation_speed;
|
