summaryrefslogtreecommitdiff
path: root/Sprite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Sprite.cpp')
-rw-r--r--Sprite.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Sprite.cpp b/Sprite.cpp
index e920361..373b04e 100644
--- a/Sprite.cpp
+++ b/Sprite.cpp
@@ -2,6 +2,8 @@
#include "Sprite.h"
Sprite::Sprite() {
+ // Set initial clip to the whole image
+ clipNo = 0;
isVisible = true;
}
@@ -27,8 +29,6 @@ bool Sprite::visible() {
bool Sprite::setImage(std::string path) {
image = loadImage(path);
- // Set initial clip to the whole image
- clipNo = 0;
clip[0].x = 0;
clip[0].y = 0;
clip[0].w = image->w;