]> bicyclesonthemoon.info Git - ott/enhance/commitdiff
Fixed t-1 remap
authorb <rowerynaksiezycu@gmail.com>
Fri, 2 Dec 2022 10:31:15 +0000 (11:31 +0100)
committerb <rowerynaksiezycu@gmail.com>
Fri, 2 Dec 2022 10:31:15 +0000 (11:31 +0100)
remap_t_1.c

index 1116fe7aeef47fdf2154adb83b1998d94b1fbb51..3daf1c92b5251263fe97b2a16d2c47c96d2be026 100644 (file)
@@ -118,8 +118,7 @@ int subtool_remap_t_1 (int argc, char **argv, int argi, char **err)
                        break;
                data.new_pal[i].red   = ( v[0]         << 2) | ((v[1] & 0x30) >> 4);
                data.new_pal[i].green = ((v[1] & 0x0f) << 4) | ((v[2] & 0x3c) >> 2);
-               data.new_pal[i].blue  = ((v[3] & 0x03) << 6) |   v[3]              ;
-               ++data.n1;
+               data.new_pal[i].blue  = ((v[2] & 0x03) << 6) |   v[3]              ;
        }
        
        r = perform_action_1picture (