[Freeciv-Dev] (PR#11759) wrong mail address
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11759 >
This particular piece of code should be done better. Here's a second
patch that improves the behavior.
-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:37:14 -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;
+ }
+ length = 99;
}
if (tile_to_canvas_pos(&canvas_x, &canvas_y, ptile)) {
|
|