Fix instant compile for new variables due to tmp_var ptrs changing
Tmp Var 1 & 2 fixed 101 and 102, fixes unnecesary recompiles on data_ptrs.h,
Was constantly changing due to being the last variable in the list
Instant compiles everywhere! Finaly!!! Some super sleuthing with pautomas
@@ -666,6 +666,8 @@ export const precompileVariables = (scenes) => {
for (let i = 0; i < 100; i++) {
variables.push(String(i));
}
+ variables.push(TMP_VAR_1);
+ variables.push(TMP_VAR_2);
walkScenesEvents(scenes, (cmd) => {
if (eventHasArg(cmd, "variable")) {
@@ -687,8 +689,6 @@ export const precompileVariables = (scenes) => {
}
}
});
- variables.push(TMP_VAR_1);
- variables.push(TMP_VAR_2);
return variables;
};
