@@ -17,9 +17,9 @@ stdout.write(c); stdout.flush(); } } -/* + class GuardedOutput : GameObserver { this(in Game g) { @@ -34,9 +34,9 @@ return; log ~= c; score_log ~= g.score; - if(finished || log.length+1==g.map.W*g.map.H) + if(finished || log.length+1==g.W*g.H) flush(); } private: @@ -71,5 +71,4 @@ extern(C) static void catch_sigint(int) { g_output.flush(); application_exit(); } core.stdc.signal.signal(SIGINT, &catch_sigint); } } -*/