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

 Rescue plane failure is not an error situation, so don't print it as LOG_ERROR.


 - ML

diff -Nurd -X.diff_ignore freeciv/server/unittools.c freeciv/server/unittools.c
--- freeciv/server/unittools.c	2007-03-15 16:07:21.000000000 +0200
+++ freeciv/server/unittools.c	2007-03-15 16:52:26.000000000 +0200
@@ -381,8 +381,10 @@
 	      if (!alive) {
                 freelog(LOG_ERROR, "rescue plane: unit %d died enroute!", id);
               } else if (!same_pos(punit->tile, pos.tile)) {
-                  /* Something odd happened */
-                  freelog(LOG_ERROR,
+                  /* Enemy units probably blocked our route
+                   * FIXME: We should try find alternative route around
+                   * the enemy unit instead of just giving up and crashing. */
+                  freelog(LOG_DEBUG,
                           "rescue plane: unit %d could not move to refuel point!",
                           punit->id);
               }
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to