b23f9ce5db
Update for 4.3.1.
2006-04-05 18:54:18 +00:00
f576dd6694
(verify_row): uid check was too strict.
2006-04-05 18:47:02 +00:00
75eec5e0e3
Comment grammar fix.
2006-04-05 18:34:54 +00:00
800b521e47
New section on booleans. Elaborate thread safety.
2006-04-05 18:33:41 +00:00
11e09910aa
Fix the previous revision.
2006-04-05 18:15:07 +00:00
6fdac645ba
(bestownedpath, owned_and_navigable): Terrain parameter isn't really
...
used, remove it. Use null bigmap argument to ignore terrain (flying),
non-null for navigation. Callers changed.
2006-04-05 09:50:45 +00:00
abb9ae2338
(bestownedpath): Return NULL on long path instead of "?". Terminate
...
returned path with 'h'. This makes BestShipPath() and BestAirPath()
more similar to BestLandPath(). Simplify callers.
2006-04-05 09:30:38 +00:00
9c27a771b3
(BestAirPath): Some callers assumed non-null return value must be the
...
first argument. Fix them. Simplify bestownedpath().
2006-04-05 09:13:03 +00:00
462bc9e7b2
(owned_and_navigable): Rework rev. 1.18: do check the real sector, but
...
only if it's owned or allied. Check it before the bmap, and do it
just like shp_check_nav() does (should use common code).
2006-04-05 08:51:50 +00:00
9c2b741b2e
(getpath): Supply the missing code for P_SAILING. This makes the sail
...
command accept destination sectors as well as paths. Clean up the
case discrimination.
2006-04-05 07:30:41 +00:00
b923c951ed
(P_NONE, P_WALKING, P_FLYING, P_SAILING, p_mode): Turn into new
...
enumeration p_mode. Users changed. s_char and register purge.
2006-04-05 07:21:49 +00:00
7cc14a2c9a
(tend): Fix rev. 1.20: used to send bulletin to last tendee's owner,
...
unless that's the player, regardless of success. Send them for every
successful tend to a foreign ship.
2006-04-05 07:06:58 +00:00
4895745773
(build_mission_list_type): Simplify.
...
(show_mission): Plug memory leak.
2006-03-29 19:46:39 +00:00
e8b50af84e
(mission): Silence compiler warning.
2006-03-29 19:40:42 +00:00
9646854705
(mission): Plug memory leak. s_char purge.
2006-03-29 19:40:22 +00:00
7d5a6b817e
(iop): Remove unused members assoc, notify.
...
(io_open): Remove unused parameters assoc, notify. Caller changed.
2006-03-29 19:19:47 +00:00
ed074ff6f2
(main): Remove superflous calloc(). s_char purge.
2006-03-29 16:56:14 +00:00
8d68043668
(bestownedpath): Fix test of end sector for terrain string starting
...
with 'R'. Broken in 4.2.2. No such terrain strings occur.
2006-03-29 16:12:00 +00:00
7f37ecb680
(owned_and_navigable): Do not check the real sector, only the bmap.
...
Checking the real sector leaks information, which can be abused to
test whether an arbitrary sector is unfriendly or an inefficient
harbor or bridge, at the cost of some ship mobility (I think).
Initially broken ca. 1993, went through several changes, but the leak
survived them all.
2006-03-29 16:06:30 +00:00
a77a8c3abd
(emp_config): Failed to call set_dirs() when default econfig file
...
doesn't exist.
2006-03-29 13:14:55 +00:00
9847e27a2f
(genlist): Move from include/mission.h to src/lib/subs/mission.c.
...
(genlist): Remove unused members x, y.
(genlist): Use void * for generic pointer members cp, thing. Change
users not to cast.
(oprange): Oops on bad argument.
2006-03-29 07:53:25 +00:00
8383f33229
(as_data): Use void * for userdata member and userdata parameter of
...
callbacks. Users changed.
2006-03-28 21:00:00 +00:00
aa5a8ec0dc
(bp_init): Use semantically correct return type instead of s_char *.
...
Caller changed.
2006-03-28 20:42:57 +00:00
bd2673a6e4
Remove superflous casts.
2006-03-28 19:51:48 +00:00
a1ce7db238
(move_ground): Drop first parameter of map callback, it's not used.
...
Callers changed. s_char purge.
2006-03-28 19:46:40 +00:00
06b669924a
Type of gift()'s generic pointer parameter was fixed in the previous
...
revision of src/lib/commands/load.c, change callers.
2006-03-28 19:20:08 +00:00
5c5175ac13
Bump version to 4.3.1.
2006-03-28 18:35:08 +00:00
8065fe84e4
(multifire): Retreat when helpless used RET_INJURED instead of
...
RET_HELPLESS. Closes #1146364 .
2006-03-28 06:22:48 +00:00
5663713be9
(retreat_ship1): Fix test for seamines. Before, retreating ships
...
could sweep and hit landmines. The bug fixed in rev. 1.35 is believed
to have masked this bug. Charge mobility for sweeping. Closes
#1346756 .
2006-03-28 05:51:49 +00:00
b60b62780e
(retreat_ship1, retreat_land1): Simplify.
2006-03-27 22:02:38 +00:00
f67ca9663a
(retreat_land1): Fix land mine hit chance (was too high).
2006-03-27 21:54:56 +00:00
9f658368b8
(MINE_LDAMAGE): Change to match damage suffered in lnd_hit_mine().
...
This increases damage suffered in retreat. Fix info Damage.
(shp_hit_mine): Use MINE_DAMAGE().
(lnd_hit_mine): Use MINE_LDAMAGE().
2006-03-27 21:47:50 +00:00
07015c3613
(shp_check_one_mines): Simplify slightly.
2006-03-27 21:43:21 +00:00
b8b243339f
(retreat_ship1): Fix sector ownership test. Before, retreating ships
...
could enter sectors owned by whoever caused the retreat, but not own
sectors. Reported by Ray Hyatt. Closes #1346750 .
2006-03-27 20:43:57 +00:00
d182f3dc1d
(command): Simplify mapping of condarg to lower case.
2006-03-27 20:13:50 +00:00
fce8b1aa38
(lost): Simplify code for argument default value.
2006-03-27 19:53:05 +00:00
3aea505aa7
Cosmetics.
2006-03-27 19:50:38 +00:00
523936cfef
(map, rout, sct, surv): Remove special case for sects argument `*',
...
snxtsct() handles it just fine.
2006-03-27 19:45:08 +00:00
f99bc9298a
(map): Simplify slightly.
2006-03-27 19:24:44 +00:00
a1907851be
(player_coms): test needs C_MOD flag, because it calls draw_map()
...
through map().
2006-03-27 19:19:58 +00:00
1ddb87d235
(tran_map): Set player->argp[0]. Required since bmap() was merged
...
into map() ca. 1995. Fixes 'm' at test's move_ground() prompt.
Simplify clearing player->argp[2]. Don't clear beyond that.
2006-03-27 19:10:40 +00:00
18bbcb2c9e
(tran_map): Set player->argp[0]. Required since bmap() was merged
...
into map() ca. 1995. Clear player->argp[2]. Required since map
acquired its second argument in the early 90s. Fixes 'm' at
transport's move_ground() prompt.
2006-03-27 19:00:42 +00:00
2ff3fe97a2
(unit_map): Don't use snxtsct(), it obeys conditionals. Use
...
snxtsct_area(). Callers march() and navi() clearly don't want it to
use conditionals. navi() used to zap them (just removed). march()
doesn't, which was a bug similar to #785447 . It's less clear for
caller map(). I'd argue that conditionals apply to map's argument,
the unit number, not to the map itself. draw_map() zaps them anyway.
2006-03-27 18:45:20 +00:00
38f4026aee
(unit_map): Simplify.
2006-03-27 18:42:18 +00:00
707e1aad72
(explore_map, nav_map, move_map, fly_map): Don't use snxtsct(), it
...
obeys conditionals. Use snxtsct_dist(). Closes #785447 . Only march
and test were actually broken, the other uses zapped conditionals.
(move_map, fly_map, nav_map, navi): Don't zap conditionals.
2006-03-27 18:20:25 +00:00
62d95ff6d4
(bsanct): Use snxtitem_all() instead of snxtitem(). The latter uses
...
player->condarg, which lets players keep sanctuaries. Broken in the
early 90s.
2006-03-26 19:21:13 +00:00
404fe4ad86
(retreat_ship1, retreat_land1): Use snxtitem_group() instead of
...
snxtitem() for RET_GROUP. The latter uses player->condarg, which lets
crafty attackers suppress retreat.
2006-03-26 19:09:06 +00:00
cc29b27a67
(conditions): Give sentinel a legible desc[], just in case.
...
(findcondition): Oops on hitting the sentinel.
(retreat_ship1, retreat_land1): Don't bother to map code to lower
case, it doesn't occur.
2006-03-26 19:02:28 +00:00
021a91a779
The previous revision is wrong, back it out.
2006-03-26 17:36:27 +00:00
82a3c0d0f5
The revision before the previous one is partially wrong, back out the
...
bad parts.
2006-03-26 17:34:58 +00:00