refactor: remove commented-out code and simplify joker initialization

This commit is contained in:
cellos51
2025-07-23 17:35:42 -04:00
parent 6a326e27fe
commit ea5e4d5d1e
2 changed files with 1 additions and 3 deletions
-1
View File
@@ -19,7 +19,6 @@ const static u16 card_sprite_lut[NUM_SUITS][NUM_RANKS] = {
void card_init() void card_init()
{ {
//GRIT_CPY(&tile_mem[4], deck_gfxTiles);
GRIT_CPY(&pal_obj_mem[CARD_PB], deck_gfxPal); GRIT_CPY(&pal_obj_mem[CARD_PB], deck_gfxPal);
} }
+1 -2
View File
@@ -36,8 +36,7 @@ static bool used_layers[MAX_JOKER_OBJECTS] = {false}; // Track used layers for j
void joker_init() void joker_init()
{ {
//GRIT_CPY(&tile_mem[4][JOKER_TID], joker_gfxTiles); GRIT_CPY(&pal_obj_mem[PAL_ROW_LEN * JOKER_PB], joker_gfxPal);
memcpy16(&pal_obj_mem[PAL_ROW_LEN * JOKER_PB], joker_gfxPal, sizeof(joker_gfxPal) / 2);
} }
Joker *joker_new(u8 id) Joker *joker_new(u8 id)