mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-08-24 07:20:55 +00:00
Remove unused maxZoom attrib and related code
This commit is contained in:
parent
69ffb75746
commit
9d7dbe5435
3 changed files with 2 additions and 19 deletions
|
@ -6470,16 +6470,8 @@ void Avatar::onUpdate(float dt)
|
||||||
myZoom.interpolateTo(zoomMove, time, 0, 0, 1);
|
myZoom.interpolateTo(zoomMove, time, 0, 0, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (myZoom.x < game->maxZoom)
|
core->globalScale.x = myZoom.x;
|
||||||
{
|
core->globalScale.y = myZoom.y;
|
||||||
core->globalScale.x = game->maxZoom;
|
|
||||||
core->globalScale.y = game->maxZoom;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
core->globalScale.x = myZoom.x;
|
|
||||||
core->globalScale.y = myZoom.y;
|
|
||||||
}
|
|
||||||
core->globalScaleChanged();
|
core->globalScaleChanged();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1390,13 +1390,6 @@ bool Game::loadSceneXML(std::string scene)
|
||||||
os << "cameraConstrained: " << cameraConstrained;
|
os << "cameraConstrained: " << cameraConstrained;
|
||||||
debugLog(os.str());
|
debugLog(os.str());
|
||||||
}
|
}
|
||||||
if (level->Attribute("maxZoom"))
|
|
||||||
{
|
|
||||||
maxZoom = atof(level->Attribute("maxZoom"));
|
|
||||||
std::ostringstream os;
|
|
||||||
os << maxZoom;
|
|
||||||
levelSF->SetAttribute("maxZoom", os.str().c_str());
|
|
||||||
}
|
|
||||||
|
|
||||||
gradTop = gradBtm = Vector(0,0,0);
|
gradTop = gradBtm = Vector(0,0,0);
|
||||||
if (level->Attribute("gradient"))
|
if (level->Attribute("gradient"))
|
||||||
|
@ -2597,7 +2590,6 @@ void Game::applyState()
|
||||||
dsq->getRenderObjectLayer(LR_BLACKGROUND)->update = false;
|
dsq->getRenderObjectLayer(LR_BLACKGROUND)->update = false;
|
||||||
|
|
||||||
grad = 0;
|
grad = 0;
|
||||||
maxZoom = -1;
|
|
||||||
maxLookDistance = 600;
|
maxLookDistance = 600;
|
||||||
saveFile = 0;
|
saveFile = 0;
|
||||||
deathTimer = 0.9f;
|
deathTimer = 0.9f;
|
||||||
|
|
|
@ -228,7 +228,6 @@ public:
|
||||||
std::string overrideMusic;
|
std::string overrideMusic;
|
||||||
void resetFromTitle();
|
void resetFromTitle();
|
||||||
|
|
||||||
float maxZoom;
|
|
||||||
float maxLookDistance;
|
float maxLookDistance;
|
||||||
|
|
||||||
XMLDocument *saveFile;
|
XMLDocument *saveFile;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue