Change encoding of `not in any group' from space to 0, because that's
friendlier in conditionals: (army, build_ship, build_land, build_plane, doship, doplane, dounit) (flee, check_trade, wing, snxtitem_group, takeover_ship) (takeover_land): Assign 0 instead of space. (carg, lcarg, pr_ship, pr_plane, pr_land, ldump, land, pdump, plan) (retr, lretr, sdump, shi, lnd_list, shp_list, ask_olist, att_prompt) (ask_move_in): Update printing of group. (takeover_plane): Failed to clear wing.
This commit is contained in:
parent
a46de3d997
commit
1b94ddedc3
20 changed files with 38 additions and 44 deletions
|
@ -369,7 +369,7 @@ build_ship(struct sctstr *sp, struct mchrstr *mp, short *vec, int tlev)
|
|||
ship.shp_nland = 0;
|
||||
ship.shp_nxlight = 0;
|
||||
ship.shp_nchoppers = 0;
|
||||
ship.shp_fleet = ' ';
|
||||
ship.shp_fleet = 0;
|
||||
memset(ship.shp_item, 0, sizeof(ship.shp_item));
|
||||
ship.shp_pstage = PLG_HEALTHY;
|
||||
ship.shp_ptime = 0;
|
||||
|
@ -490,7 +490,7 @@ build_land(struct sctstr *sp, struct lchrstr *lp, short *vec, int tlev)
|
|||
land.lnd_mobil = 0;
|
||||
}
|
||||
land.lnd_uid = nstr.cur;
|
||||
land.lnd_army = ' ';
|
||||
land.lnd_army = 0;
|
||||
land.lnd_flags = 0;
|
||||
land.lnd_ship = -1;
|
||||
land.lnd_land = -1;
|
||||
|
@ -792,7 +792,7 @@ build_plane(struct sctstr *sp, struct plchrstr *pp, short *vec, int tlev)
|
|||
plane.pln_radius = 0;
|
||||
plane.pln_range = UCHAR_MAX; /* will be adjusted by pln_set_tech() */
|
||||
plane.pln_range_max = plane.pln_range;
|
||||
plane.pln_wing = ' ';
|
||||
plane.pln_wing = 0;
|
||||
plane.pln_ship = -1;
|
||||
plane.pln_land = -1;
|
||||
plane.pln_uid = nstr.cur;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue