r175 - trunk/src
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Wed Sep 14 12:03:34 EDT 2005
Author: jonas
Date: 2005-09-14 12:03:34 -0400 (Wed, 14 Sep 2005)
New Revision: 175
Modified:
trunk/src/objects_common.cpp
Log:
100l
Modified: trunk/src/objects_common.cpp
===================================================================
--- trunk/src/objects_common.cpp 2005-09-14 16:00:24 UTC (rev 174)
+++ trunk/src/objects_common.cpp 2005-09-14 16:03:34 UTC (rev 175)
@@ -172,13 +172,12 @@
}
if (hasParam(parameters,"type")) {
animation_type=NOTHING;
- if (parameters.find("type")->second.find("once") !=string::npos) animation_type|=ATYPE_ONCE;
- if (parameters.find("type")->second.find("loop") !=string::npos) animation_type|=ATYPE_LOOP;
- if (parameters.find("type")->second.find("swing") !=string::npos) animation_type|=ATYPE_SWING;
- if (parameters.find("type")->second.find("step") !=string::npos) animation_type|=ATYPE_STEP;
- if (parameters.find("type")->second.find("reverse" !=string::npos)) {
- animation_type<<=1;
- }
+ if (parameters.find("type")->second.find("once") !=string::npos) animation_type|=ATYPE_ONCE;
+ if (parameters.find("type")->second.find("loop") !=string::npos) animation_type|=ATYPE_LOOP;
+ if (parameters.find("type")->second.find("swing") !=string::npos) animation_type|=ATYPE_SWING;
+ if (parameters.find("type")->second.find("step") !=string::npos) animation_type|=ATYPE_STEP;
+ if (parameters.find("type")->second.find("reverse") !=string::npos) animation_type<<=1;
+
if (animation_type==NOTHING) animation_type=ATYPE_LOOP;
if (parameters.find("type")->second.find("switch")) animation_type|=ATYPE_ST_SWITCH;
}
More information about the lostpenguins-commits
mailing list