From 7ec1f51f1e13dc27b976e0a5b47a7e110e214e57 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 17 Sep 2023 09:03:58 +0300 Subject: [PATCH 13/13] unpackage_short_unit(): Use 0, not FALSE, veteran level See osdn #48645 Signed-off-by: Marko Lindqvist --- client/packhand.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/packhand.c b/client/packhand.c index 3e7d075183..5c4222a431 100644 --- a/client/packhand.c +++ b/client/packhand.c @@ -191,7 +191,7 @@ static struct unit *unpackage_unit(const struct packet_unit_info *packet) packet->veteran); /* Owner, veteran, and type fields are already filled in by - * unit_virtual_create. */ + * unit_virtual_create() */ punit->nationality = player_by_number(packet->nationality); punit->id = packet->id; unit_tile_set(punit, index_to_tile(packet->tile)); @@ -274,7 +274,7 @@ static struct unit *unpackage_unit(const struct packet_unit_info *packet) } /**************************************************************************** - Unpackage a short_unit_info packet. This extracts a limited amount of + Unpackage a short_unit_info packet. This extracts a limited amount of information about the unit, and is sent for units we shouldn't know everything about (like our enemies' units). @@ -289,9 +289,9 @@ unpackage_short_unit(const struct packet_unit_short_info *packet) struct unit *punit = unit_virtual_create(player_by_number(packet->owner), NULL, utype_by_number(packet->type), - FALSE); + 0); - /* Owner and type fields are already filled in by unit_virtual_create. */ + /* Owner and type fields are already filled in by unit_virtual_create() */ punit->id = packet->id; unit_tile_set(punit, index_to_tile(packet->tile)); punit->facing = packet->facing; -- 2.40.1