unit: Fix comments on struct ulist member use

Members x, y, eff, supplied are not "LAND only", they're used only by
ground combat.  They're not used by march.

In ground combat, member mobil is not how much the land unit has left,
it's how much it still needs to be charged.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2014-01-25 10:18:04 +01:00
parent fe42e6e8dd
commit 5c9d6063a4

View file

@ -28,7 +28,7 @@
* *
* Known contributors to this file: * Known contributors to this file:
* Ron Koenderink, 2006-2007 * Ron Koenderink, 2006-2007
* Markus Armbruster, 2006-2013 * Markus Armbruster, 2006-2014
*/ */
#ifndef UNIT_H #ifndef UNIT_H
@ -38,12 +38,14 @@
struct ulist { struct ulist {
struct emp_qelem queue; /* list of units */ struct emp_qelem queue; /* list of units */
double mobil; /* how much mobility the unit has left */ double mobil; /* moving: how much the unit has left
ground combat: how much to charge */
struct empobj_chr *chrp; /* pointer to characteristics unit */ struct empobj_chr *chrp; /* pointer to characteristics unit */
union empobj_storage unit; /* unit */ union empobj_storage unit; /* unit */
coord x, y; /* x,y it came from LAND only */ /* Rest used only by ground combat (attsub.c) */
int eff; /* LAND only */ coord x, y; /* x,y it came from */
int supplied; /* LAND only */ int eff; /* initial efficiency */
int supplied;
}; };
extern void unit_cargo_init(void); extern void unit_cargo_init(void);