sprite optimizations + static array fix (#454)
* 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:
@@ -124,9 +124,8 @@ void game_main_menu_on_init(void)
|
||||
|
||||
void game_main_menu_on_update(void)
|
||||
{
|
||||
card_object_update(main_menu_ace);
|
||||
main_menu_ace->sprite_object->trotation = lu_sin((g_game_vars.timer << 8) / 2) / 3;
|
||||
main_menu_ace->sprite_object->rotation = main_menu_ace->sprite_object->trotation;
|
||||
card_object_update(main_menu_ace);
|
||||
|
||||
// Seed randomization
|
||||
g_game_vars.rng_seed++;
|
||||
|
||||
Reference in New Issue
Block a user