Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2005:
[Freeciv-Dev] (PR#11759) wrong mail address
Home

[Freeciv-Dev] (PR#11759) wrong mail address

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: chrisk@xxxxxxxxx
Subject: [Freeciv-Dev] (PR#11759) wrong mail address
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 1 Jan 2005 17:49:35 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11759 >

> [jdorje - Sun Jan 02 01:37:47 2005]:
> 
> This particular piece of code should be done better.  Here's a second
> patch that improves the behavior.

Oops.  Here's a version that should actually work.

-jason

? gmon.out
Index: client/mapview_common.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/mapview_common.c,v
retrieving revision 1.169
diff -u -r1.169 mapview_common.c
--- client/mapview_common.c     2 Jan 2005 01:36:03 -0000       1.169
+++ client/mapview_common.c     2 Jan 2005 01:48:54 -0000
@@ -780,8 +780,15 @@
     length = get_goto_turns();
 
     if (length >= 100) {
-      freelog(LOG_ERROR, _("Paths longer than 99 turns are not supported.\n"
-                          "Report this bug to bugs@xxxxxxxxxxx."));
+      static bool reported = FALSE;
+
+      if (!reported) {
+       freelog(LOG_ERROR,
+               _("Paths longer than 99 turns are not supported.\n"
+                 "Report this bug to bugs@xxxxxxxxxxx."));
+       reported = TRUE;
+      }
+      tens = units = 9;
     }
 
     if (tile_to_canvas_pos(&canvas_x, &canvas_y, ptile)) {

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