gnugo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnugo-devel] gameinfo_play_sgftree_rot() patch


From: Paul Pogonyshev
Subject: [gnugo-devel] gameinfo_play_sgftree_rot() patch
Date: Tue, 6 Jan 2004 17:56:08 +0000
User-agent: KMail/1.5.94

This simple patch makes `-L l15' work just as `-L L15'.

Paul



--- interface.c.~1.44.~ 2003-08-12 09:15:20.000000000 +0000
+++ interface.c 2004-01-06 17:52:36.000000000 +0000
@@ -529,10 +529,14 @@ gameinfo_play_sgftree_rot(Gameinfo *game
       DEBUG(DEBUG_LOADSGF, "Loading until move %d\n", until);
     }
     else {
-      untiln = *untilstr - 'A';
-      if (*untilstr >= 'I')
+      if ('A' <= *untilstr && *untilstr <= 'Z')
+       untiln = *untilstr - 'A';
+      else
+       untiln = *untilstr - 'a';
+
+      if (untiln >= 'I' - 'A')
        --untiln;
-         
+
       untilm = board_size - atoi(untilstr+1);
       DEBUG(DEBUG_LOADSGF, "Loading until move at %d,%d (%m)\n", 
            untilm, untiln, untilm, untiln);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]