equal
deleted
inserted
replaced
1304 WP(w,vp_d).scrollpos_y = _saved_scrollpos_y; |
1304 WP(w,vp_d).scrollpos_y = _saved_scrollpos_y; |
1305 WP(w,vp_d).dest_scrollpos_x = _saved_scrollpos_x; |
1305 WP(w,vp_d).dest_scrollpos_x = _saved_scrollpos_x; |
1306 WP(w,vp_d).dest_scrollpos_y = _saved_scrollpos_y; |
1306 WP(w,vp_d).dest_scrollpos_y = _saved_scrollpos_y; |
1307 |
1307 |
1308 vp = w->viewport; |
1308 vp = w->viewport; |
1309 vp->zoom = _saved_scrollpos_zoom; |
1309 vp->zoom = (ZoomLevel)min(_saved_scrollpos_zoom, ZOOM_LVL_MAX); |
1310 vp->virtual_width = ScaleByZoom(vp->width, vp->zoom); |
1310 vp->virtual_width = ScaleByZoom(vp->width, vp->zoom); |
1311 vp->virtual_height = ScaleByZoom(vp->height, vp->zoom); |
1311 vp->virtual_height = ScaleByZoom(vp->height, vp->zoom); |
1312 |
1312 |
1313 /* in version 4.1 of the savegame, is_active was introduced to determine |
1313 /* in version 4.1 of the savegame, is_active was introduced to determine |
1314 * if a player does exist, rather then checking name_1 */ |
1314 * if a player does exist, rather then checking name_1 */ |