implemented real zooming in forest house

svn-id: r45963
This commit is contained in:
Vladimir Menshakov 2009-11-17 22:22:40 +00:00
parent da1432cf21
commit 8f68974d22

View File

@ -667,8 +667,13 @@ bool Scene::render(OSystem *system) {
} else if (!hide_actor) {
actor_animation.free();
uint zoom = 256;
if (_id == 18) { //zoom hack
zoom = 192;
const int zoom_min = 115, zoom_max = 150;
if (_id == 18 && position.y < zoom_max) { //zoom hack
if (position.y >= zoom_min)
zoom = 128 + 128 * (position.y - zoom_min) / (zoom_max - zoom_min);
else
zoom = 128;
debug(0, "zoom = %u", zoom);
}
if (!path.empty()) {