Project

General

Profile

Bug #1912 » 0026-Correct-comment-about-owner-field-of-unit-struct.patch

main - Marko Lindqvist, 04/03/2026 11:35 AM

View differences:

common/unit.h
struct tile *tile;
int refcount;
enum direction8 facing;
struct player *owner; /* Cannot be nullptr. */
struct player *owner; /* Can be nullptr on client side, for a flagless unit */
struct player *nationality;
int id;
int homecity;
int upkeep[O_LAST]; /* unit upkeep with regards to the homecity */
int upkeep[O_LAST]; /* Unit upkeep with regards to the homecity */
int moves_left;
int hp;
(1-1/2)