Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2002:
[Freeciv-Dev] [PATCH] cleanup warning at gamehand.c (PR#1314)
Home

[Freeciv-Dev] [PATCH] cleanup warning at gamehand.c (PR#1314)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] [PATCH] cleanup warning at gamehand.c (PR#1314)
From: Markus Linnala <maage@xxxxxxxxx>
Date: Sun, 10 Mar 2002 08:25:16 -0800 (PST)

F_CITIES and L_EXPLORER are different types, make explicit cast.

diff -ur -X freeciv/diff_ignore freeciv/server/gamehand.c 
freeciv-cvs-xxx/server/gamehand.c
--- freeciv/server/gamehand.c   Thu Mar  7 07:24:33 2002
+++ freeciv-cvs-xxx/server/gamehand.c   Sun Mar 10 14:35:18 2002
@@ -137,7 +137,7 @@
        show_area(&game.players[i], cx, cy, 0);
       } circle_iterate_end;
       /* Create the unit of an appropriate type. */
-      utype = get_role_unit((j < game.settlers) ? F_CITIES : L_EXPLORER, 0);
+      utype = get_role_unit((j < game.settlers) ? (int)F_CITIES : 
(int)L_EXPLORER, 0);
       (void) create_unit(&game.players[i], dx, dy, utype, FALSE, 0, -1);
     }
   }

-- 
//Markus



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