fix potential floating point exception when converting NaN to int. Thanks to @bkuhls
fixed: quell warning

incrementing a bool is deprecated
fixed: undefined behavior in karaokelyricstextkar