projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Saner life expectancy
[supertux.git]
/
src
/
sprite
/
sprite.hpp
diff --git
a/src/sprite/sprite.hpp
b/src/sprite/sprite.hpp
index
a43df0a
..
b85b62e
100644
(file)
--- a/
src/sprite/sprite.hpp
+++ b/
src/sprite/sprite.hpp
@@
-109,14
+109,14
@@
public:
{ return (int)frame; }
/** Set current frame */
void set_frame(int frame)
{ return (int)frame; }
/** Set current frame */
void set_frame(int frame)
- {
- this->frame = (f
rame % get_frames());
+ {
+ this->frame = (f
loat) (frame % get_frames());
}
Surface* get_frame(unsigned int frame)
{
assert(frame < action->surfaces.size());
return action->surfaces[frame];
}
Surface* get_frame(unsigned int frame)
{
assert(frame < action->surfaces.size());
return action->surfaces[frame];
- }
+ }
private:
void update();
private:
void update();
@@
-134,4
+134,3
@@
private:
};
#endif
};
#endif
-