aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Sprite.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/api/Sprite.h')
-rw-r--r--src/crepe/api/Sprite.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/api/Sprite.h b/src/crepe/api/Sprite.h
index a0e90a0..5a7a1d9 100644
--- a/src/crepe/api/Sprite.h
+++ b/src/crepe/api/Sprite.h
@@ -41,7 +41,7 @@ public:
* \param height the height of the image in game units
*/
Sprite(game_object_id_t id, Texture & image, const Color & color,
- const FlipSettings & flip, int sort_layer, int order_layer, int height);
+ const FlipSettings & flip, int sort_layer, int order_layer, float height);
/**
* \brief Destroys the Sprite instance.
@@ -63,7 +63,7 @@ public:
const int order_in_layer;
//! height in world units
- const int height;
+ const float height;
/**
* \aspect_ratio ratio of the img so that scaling will not become weird