mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Fix ProtoPalette::compare
The function only stopped at the end of the *arrays*, not of *their used portions*! This could cause false negatives one way or the other. This appears not to affect the palette packing, since the packing algorithm deals with them efficiently; but it should speed up processing slightly, and as the test changes show, it also improves the UX of palette packing error messages!
This commit is contained in:
@@ -1,14 +1,8 @@
|
||||
error: Failed to fit tile colors [$7f55, $7fff] in specified palettes
|
||||
error: Failed to fit tile colors [$7f55] in specified palettes
|
||||
error: Failed to fit tile colors [$6c8a, $7f55, $7fff] in specified palettes
|
||||
error: Failed to fit tile colors [$6c8a, $7fff] in specified palettes
|
||||
error: Failed to fit tile colors [$6c8a, $7f55] in specified palettes
|
||||
error: Failed to fit tile colors [$6c8a] in specified palettes
|
||||
error: Failed to fit tile colors [$7fff] in specified palettes
|
||||
note: The following palettes were specified:
|
||||
[$5f77, $213d, $41a6, $40ee]
|
||||
[$3f65, $36b3, $262a, $50b0]
|
||||
[$53c3, $3f65, $36b3]
|
||||
[$5f77, $267c, $41a6]
|
||||
[$267c, $213d, $40ee]
|
||||
Conversion aborted after 7 errors
|
||||
Conversion aborted after 1 error
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
error: Failed to fit tile colors [$6c8a, $7f55, $7fff] in specified palettes
|
||||
error: Failed to fit tile colors [$6c8a, $7f55] in specified palettes
|
||||
note: The following palettes were specified:
|
||||
[$7fff, $7f55]
|
||||
[$7fff, $6c8a]
|
||||
Conversion aborted after 2 errors
|
||||
Conversion aborted after 1 error
|
||||
|
||||
Reference in New Issue
Block a user