Skip to content

Commit

Permalink
Fixes for test sprites and animation regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
david-pfx committed Jul 16, 2024
1 parent 85cf8ba commit b98419f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/graphics.js
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ function redrawCellGrid(curlevel) {
//if (obj.scale) spriteScale *= obj.scale;
const drawpos = render.getDrawPos(posindex, obj);
const vector = obj.vector;
const params = {
let params = {
x: 0, y: 0,
scalex: 1.0, scaley: 1.0,
alpha: 1.0,
Expand Down
7 changes: 7 additions & 0 deletions src/js/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1962,6 +1962,12 @@ var codeMirrorFn = function() {
return flushToken();
} // else fall through
case 3:
if (stream.match(/^text:/i, false)) {
const tokens = parseObjectSprite(stream, state);
state.current_line_wip_array.push(...tokens);
state.objects_section = 0;
return flushToken();
} // else fall through
case 4:
if (stream.match(reg_objmodi, false)) {
state.objects_section = 5; // fall through
Expand All @@ -1976,6 +1982,7 @@ var codeMirrorFn = function() {
}
case 5: {
state.current_line_wip_array.push(...parseObjectTransforms(stream, state));
state.objects_section = 0;
return flushToken();
}
}
Expand Down

0 comments on commit b98419f

Please sign in to comment.