Duke3d: mark compiled CON_MOVE/CON_AI/CON_ACTION with a trailing value

This is so I can tell the difference between actor .t_data[] values that are actually set to something defined in CON versus bullshit arbitrary internal usage of the same variable, which I need for a future commit.
This commit is contained in:
Richard C. Gobeille 2020-05-30 05:50:52 -07:00 committed by Christoph Oelckers
parent e353d38665
commit d92f56f36f

View file

@ -2629,9 +2629,9 @@ DO_DEFSTATE:
}
for (k=j; k>=0; k--)
{
scriptWriteValue(0);
}
scriptWriteValue(CON_MOVE);
}
continue;
@ -2764,18 +2764,13 @@ DO_DEFSTATE:
C_BitOrNextValue(&k);
C_FinishBitOr(k);
j = 666;
break;
}
}
if (j == 666)
continue;
for (k=j; k<3; k++)
{
scriptWriteValue(0);
}
scriptWriteValue(CON_AI);
}
continue;
@ -2824,9 +2819,9 @@ DO_DEFSTATE:
C_GetNextValue(LABEL_DEFINE);
}
for (k=j; k>=0; k--)
{
scriptWriteValue(0);
}
scriptWriteValue(CON_ACTION);
}
continue;