diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-27 11:08:50 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-27 11:08:50 +0100 |
commit | 72e605528ebe8347e1457358fe9025c215afe163 (patch) | |
tree | bd193e4805e7e600356f7d09a8971199cce8783b /src/crepe/api/Animator.cpp | |
parent | 3b433353a83c2436b69f73ca1048842d906b1147 (diff) |
implemented feedback, removed width so that user only can set height.
Diffstat (limited to 'src/crepe/api/Animator.cpp')
-rw-r--r-- | src/crepe/api/Animator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/api/Animator.cpp b/src/crepe/api/Animator.cpp index 0043896..b6540cf 100644 --- a/src/crepe/api/Animator.cpp +++ b/src/crepe/api/Animator.cpp @@ -22,6 +22,6 @@ Animator::Animator(game_object_id_t id, Sprite & ss, int row, int col, int col_a this->active = false; // need to do this for to get the aspect ratio for a single clipping in the spritesheet - this->spritesheet.aspect_ratio = (double) animator_rect.w / (double) animator_rect.h; + this->spritesheet.aspect_ratio = static_cast<double>(animator_rect.w) / animator_rect.h; } Animator::~Animator() { dbg_trace(); } |