mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 09:31:34 +11:00
Inline the modulos
This commit is contained in:
parent
900cd007df
commit
4c57f85acd
|
@ -157,6 +157,7 @@ impl Tag {
|
|||
&self.get_sprites()[idx]
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn get_animation_sprite(&self, idx: usize) -> &'static Sprite {
|
||||
let len_sub_1 = self.len - 1;
|
||||
match self.direction {
|
||||
|
|
Loading…
Reference in a new issue