Skip to content

Commit

Permalink
Fixes use of // inside an action being interpreted as a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
JujuAdams committed Dec 13, 2022
1 parent 21186c1 commit e2edf6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/__ChatterboxSplitBody/__ChatterboxSplitBody.gml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function __ChatterboxSplitBody(_source_buffer, _source_buffer_start, _source_buf
_string_start = buffer_tell(_buffer);
_string_end = _string_start-1;
}
else if ((_byte == ord("/")) && (buffer_peek(_buffer, buffer_tell(_buffer), buffer_u8) == ord("/"))) // //
else if (!_in_action && (_byte == ord("/")) && (buffer_peek(_buffer, buffer_tell(_buffer), buffer_u8) == ord("/"))) // //
{
if (__CHATTERBOX_DEBUG_SPLITTER) __ChatterboxTrace("Found start of comment");

Expand Down

0 comments on commit e2edf6d

Please sign in to comment.