[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]
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
- [Freeciv-Dev] [PATCH] cleanup warning at gamehand.c (PR#1314),
Markus Linnala <=
|
|