# HG changeset patch # User thib # Date 1217671040 0 # Node ID 9fb4609a53728f04e78d7166fb7bf64cb76b76e4 # Parent c4af1e9ab8d1b800021964f2c445c52c52922085 Partially fixed Botan's bug diff --git a/scn2k/scn2k_grp.cc b/scn2k/scn2k_grp.cc --- a/scn2k/scn2k_grp.cc +++ b/scn2k/scn2k_grp.cc @@ -1817,6 +1817,17 @@ void GrpImpl::Exec(Cmd& cmd) { else g.name = cmd.Str(cmd.args[1]); g.gan_name = cmd.Str(cmd.args[2]); + // The following lines fixes Botan's apparition on April 19 + // but Botan does not appears in the middle of the screen. + // FIXME: This needs some further investigation. + if (g.name.find('?') != -1) { + g.name.erase(g.name.find('?')); + g.gan_name = cmd.Str(cmd.args[2]); + if (cmd.cmd4 >= 1 && cmd.args[2].value == 0) + g.attr = GrpObj::Attribute(g.attr | GrpObj::HIDDEN); + else + g.attr = GrpObj::Attribute(g.attr & ~(GrpObj::HIDDEN)); + } } else if (cmd.cmd3 == 0x4b0) { // 画像を文字列として指定 g.gtype = GrpObj::MOJI; g.print_moji = cmd.Str(cmd.args[1]);