mirror of
https://github.com/glest/glest-source.git
synced 2025-02-25 12:12:25 +01:00
Default for twoFrameAnimation smoothing is false.
This commit is contained in:
parent
88e2756ac2
commit
883cfbbd27
@ -141,8 +141,7 @@ void Object::update() {
|
||||
const float speedDivider= 100.f;
|
||||
float speedDenominator = (speedDivider * GameConstants::updateFps);
|
||||
|
||||
//
|
||||
//float f= 2.1-4*abs(animProgress-.5f);
|
||||
// smooth TwoFrameanimations
|
||||
float f=1.0f;
|
||||
if(objectType->getTilesetModelType(variation)->getSmoothTwoFrameAnim()==true){
|
||||
f=abs(std::sin(animProgress*2*3.16))+0.4f;
|
||||
|
@ -315,12 +315,8 @@ void Tileset::load(const string &dir, Checksum *checksum, Checksum *tilesetCheck
|
||||
if(modelNode->hasAttribute("smoothTwoFrameAnim") == true) {
|
||||
tmt->setSmoothTwoFrameAnim(modelNode->getAttribute("smoothTwoFrameAnim")->getBoolValue());
|
||||
}
|
||||
else if(modelNode->hasChild("smoothTwoFrameAnim")){
|
||||
const XmlNode *smoothTwoFrameAnimNode= modelNode->getChild("smoothTwoFrameAnim");
|
||||
tmt->setSmoothTwoFrameAnim(smoothTwoFrameAnimNode->getAttribute("value")->getBoolValue());
|
||||
}
|
||||
else{
|
||||
tmt->setSmoothTwoFrameAnim(true);
|
||||
tmt->setSmoothTwoFrameAnim(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user