mirror of
https://github.com/gbdev/rgbds.git
synced 2026-01-21 16:01:52 +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,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