harbaum / galagino

A Galaga, Pac-Man and Donkey Kong arcade emulator for the ESP32
315 stars 21 forks source link

bug in cmapconv.py parse_colormap #48

Open jestock1 opened 4 weeks ago

jestock1 commented 4 weeks ago

There is a typo/oversight in the if statement that confirms the colormap data is valid. It does not affect the output, but I noticed it when looking at the code and wanted to point it out.

if ( c[0] < 0 or c[0] > 15 or c[0] < 0 or c[1] > 15 or

This should be revised as follows:

if ( c[0] < 0 or c[0] > 15 or c[1] < 0 or c[1] > 15 or