mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-08-11 13:25:00 +00:00
utils: fix odd bug in shape_table
This commit is contained in:
@@ -11,7 +11,11 @@
|
|||||||
/* data packed in as XX YYY ZZZ */
|
/* data packed in as XX YYY ZZZ */
|
||||||
/* ZZZ = first dir, YYY = next, XX = last, can only be no-draw as 2 bits */
|
/* ZZZ = first dir, YYY = next, XX = last, can only be no-draw as 2 bits */
|
||||||
/* note XX can't be NUP (00) */
|
/* note XX can't be NUP (00) */
|
||||||
|
/* */
|
||||||
|
/* NUP=0 UP=4 */
|
||||||
|
/* NRT=1 RT=5 */
|
||||||
|
/* NDN=2 DN=6 */
|
||||||
|
/* NLT=3 LT=7 */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -260,7 +264,7 @@ int main(int argc, char **argv) {
|
|||||||
/* Try to fit in LOC_C. */
|
/* Try to fit in LOC_C. */
|
||||||
|
|
||||||
/* This can only hold no-draw moves */
|
/* This can only hold no-draw moves */
|
||||||
/* Also a LOC_C of 0 is ignored */
|
/* Also a LOC_C of 0 is ignored */
|
||||||
if ((command&0x4) || (command==0)) {
|
if ((command&0x4) || (command==0)) {
|
||||||
|
|
||||||
/* Write to LOC_A instead */
|
/* Write to LOC_A instead */
|
||||||
@@ -274,11 +278,12 @@ int main(int argc, char **argv) {
|
|||||||
else {
|
else {
|
||||||
/* write to LOC_C */
|
/* write to LOC_C */
|
||||||
|
|
||||||
if (current_offset==8) {
|
// if (current_offset==8) {
|
||||||
}
|
/* What?? why?? */
|
||||||
else {
|
// }
|
||||||
|
// else {
|
||||||
table[current_offset]|=((command&0x3)<<6);
|
table[current_offset]|=((command&0x3)<<6);
|
||||||
}
|
// }
|
||||||
|
|
||||||
warn_if_zero(table[current_offset],line);
|
warn_if_zero(table[current_offset],line);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user