changeset 4:9fb4609a5372

Partially fixed Botan's bug
author thib
date Sat, 02 Aug 2008 09:57:20 +0000
parents c4af1e9ab8d1
children aa0577c1a494
files scn2k/scn2k_grp.cc
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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]);