mirror of
https://github.com/cellos51/balatro-gba.git
synced 2026-09-14 03:46:31 -05:00
sprite optimizations + static array fix (#454)
Some checks failed
Build and Deploy Doxygen Docs / docs (push) Has been cancelled
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user