I'm surprised that nobody reported the bug so it might be a human error of my doing.
When I tried to use WhiteSpace mode -- (using /WS, and/or setting TRUE in DEFAULT_WHITESPACE), the game crashed and spat error at me. I encountered it in the blank project.
Script 'Word Wrapping' line 52: TypeError occurred.
Rect can't be coerced into Fixnum
alias_method :process_character_kz_window_base, :process_character
def process_character(c, text, pos)
if @wordwrap
c = " " if @convert_newlines && c == "\n"
if c =~ /[ \t]/
--> if pos[:x] + get_next_word_size(c, text) > contents.width <-- line 52
process_new_line(text, pos)
else
process_normal_character(c, pos)
end
return
end
end
process_character_kz_window_base(c, text, pos)
end