sprite optimizations + static array fix (#454)
Some checks failed
Build and Deploy Doxygen Docs / docs (push) Has been cancelled

* optimizations

* fix prototype

* clang-format

* changes

* fix bug

* fix bug that came back after rebase

* make is_sprite_object_static more readable

* make it not broken

* actually make it compile...

* clang-format

* remove first extra check

* remove second extra check

* remove third extra check

* helper function 1

* second helper function

* how did i do this that wrong

* seperate epsilon

* combine if statements

* clarify comment

* remove redundant checks

* Remove braces around return

Co-authored-by: Rickey <ric@rf3.xyz>

* Move comment to above

Co-authored-by: Rickey <ric@rf3.xyz>

* clang-format

* simplify using abs()

Co-authored-by: Rickey <ric@rf3.xyz>

* fix syntax error from suggestion

* drop second epsilon + use abs()

* update comment

* extract sprite_oject_needs_position_sync from is_sprite_object_static

* figured out the root cause :)

* make it compile

---------

Co-authored-by: Rickey <ric@rf3.xyz>
This commit is contained in:
Elliot Tester
2026-05-17 06:08:47 +02:00
committed by GitHub
parent d5d5a6fd6b
commit dae65d035f
4 changed files with 40 additions and 15 deletions

View File

@@ -236,7 +236,7 @@ void sprite_object_reset_transform(SpriteObject* sprite_object);
*
* @param sprite_object pointer to SpriteObject to update. Cannot be **NULL**.
*/
void sprite_object_update(SpriteObject* sprite_object);
IWRAM_CODE void sprite_object_update(SpriteObject* sprite_object);
/**
* @brief Shake SpriteObject on screen and play a sound