if(action && action->name == name)
return;
- SpriteData::Action* newaction = data.get_action(name);
+ const SpriteData::Action* newaction = data.get_action(name);
if(!newaction) {
log_debug << "Action '" << name << "' not found." << std::endl;
return;
if(action && action->name == name)
return;
- SpriteData::Action* newaction = data.get_action(name);
+ const SpriteData::Action* newaction = data.get_action(name);
if(!newaction) {
log_debug << "Action '" << name << "' not found." << std::endl;
return;
}
void
-Sprite::set_fps(float new_fps)
-{
- action->fps = new_fps;
-}
-
-void
Sprite::set_angle(float a)
{
angle = a;