924417c110
More 4.2.22 changes.
2005-10-11 20:59:00 +00:00
8b84d50d23
Replace incorrect claim on morale_base by reference to info morale.
...
Reported by Doug Wescott.
2005-10-11 20:48:30 +00:00
14bd761a53
(play_cmd): Log begin and end of playing session. Closes #911285 .
...
(kill_cmd): Log killing.
2005-10-11 20:25:40 +00:00
a656306c89
Doc clarification.
2005-10-11 20:12:32 +00:00
19d1830bc4
(babies): Err, the maxpop case wasn't an optimization... Without
...
that, we get negative babies, which leads to negative avail and baby
food (cannibalism?) in grow_people(). Restore it.
2005-10-11 20:10:15 +00:00
4d0a17c882
(nreport): Simplify.
2005-10-11 19:31:33 +00:00
2a90b249ef
Doc fix.
2005-10-11 19:29:50 +00:00
2d47bff1f7
(set): Fix initialization of trd_y. The initial value is believed not
...
to be used.
2005-10-11 19:27:05 +00:00
2e06eedb00
Spelling fix.
2005-10-11 19:23:11 +00:00
b6f1f90fdb
Remove some commented out code that is obviously useless.
2005-10-11 19:22:59 +00:00
41327b44ca
Fix bad line breaks.
2005-10-11 19:21:57 +00:00
Marc Olzheim
51fed96269
Update for include/prototypes.h:1.90 src/lib/subs/attsub.c:1.28 src/lib/subs/shpsub.c:1.22 src/lib/update/human.c:1.16
2005-10-04 15:02:16 +00:00
1fa602b279
Update for 4.2.22.
2005-10-04 07:27:56 +00:00
af32304af0
(get_assembly_point): Close loophole that allowed players to find all
...
unowned sectors. The assembly point must now be owned or allied, or
have an owned or allied ship.
Info pages didn't match the old rule. Fix them to match the new rule.
2005-10-04 07:20:37 +00:00
5a7670d9be
(pin_bomb): Remove code to compute bestacc. It is not only wrong,
...
bestacc is not used. Been that way since Chainsaw.
2005-10-03 20:03:45 +00:00
130338aece
(ac_landflak): Don't let embarked land units fire flak.
2005-10-03 15:46:42 +00:00
e7151df698
Check against source and update accordingly.
2005-10-03 15:42:44 +00:00
e617eba026
(spy): Catching a spy makes contact.
2005-10-03 15:36:39 +00:00
82a4008000
(ac_encounter): Non-recon missions no longer make contact to owner of
...
sectors overflown, because only recon missions identify the owner.
This matches info Hidden.
2005-10-03 15:05:33 +00:00
e36134038a
(notify_coastguard): Failed to make contact when NF_COASTWATCH was
...
off.
2005-10-03 14:47:59 +00:00
61d1afdde9
Document.
2005-10-03 14:40:05 +00:00
d9bc7938ff
(satmap): Make contact iff displaying sectors. Shouldn't make a
...
difference, but is clearer.
(satmap): Spotting land units makes contact.
2005-10-03 14:37:26 +00:00
6788cac8c0
(ac_dog): Make contact both ways. This is more for completeness, as
...
contact should have been made before planes rise to fight.
2005-10-03 14:34:26 +00:00
b84775fc95
(notify_coastguard): Use FOUND_COAST, not FOUND_LOOK.
2005-10-03 14:32:02 +00:00
f94f81ee16
(add): Initialize nat_last_login and nat_last_logout to zero rather
...
than current time. Nation addition time is irrelevant.
(natstr): Document zero nat_last_login, nat_last_login mean never
logged in/out.
(player_main): Test nat_last_login zero instead of nat_hostaddr empty.
(player_main): Assign nat_userid, nat_hostname, nat_hostaddr straight
from player. The last connection's host is now shown as dotted quads
instead of nowhere when the name isn't known.
(natstr): Document that nat_userid, nat_hostname may be empty.
(player_main): Simplify printing last connection address: nat_hostaddr
can't be empty here; don't bother to substitute "nobody" for empty
user.
2005-10-03 13:25:54 +00:00
95d2b48ee2
(match_user, main): Use full buffer for fgets(); was off by one.
2005-10-03 10:45:00 +00:00
47d84b2479
(main): Delete some code that had no effect.
2005-10-03 10:42:10 +00:00
300876a44d
(retreat_ship1, retreat_land1): Delete some code that had no effect.
2005-10-03 10:41:13 +00:00
68d7cbd273
(chan): Do not arbitrarily truncate representative to 8 characters,
...
use the full size of struct natstr member nat_pnam.
2005-10-03 10:40:11 +00:00
47316b593b
(add): Use size of struct natstr members nat_cnam and nat_pnam instead
...
of literals.
2005-10-03 10:38:55 +00:00
717b8e96be
(lndstr, natstr, shpstr): Fix string types from s_char[] to char[].
...
They were declared NSC_STRINGY in their selector descriptors, and
NSC_STRINGY is specified to represent char[].
(player): Get rid of s_char.
2005-10-03 10:35:44 +00:00
30a4437714
(babies): Factored out of grow_people(). Identical, except it doesn't
...
bother to `optimize' the maxpop case, and it drops the weird food
limit computation for opt_NOFOOD, which didn't limited for any
reasonable game parameters.
2005-10-02 19:10:16 +00:00
144c7cb5cd
(ac_encounter): Make contact on spotting planes. Closes #857594 .
2005-10-02 18:41:29 +00:00
5d207af26f
(look_ship, look_land): Failed to make contact on sighting ships,
...
planes and land units. Partial fix for #857594 .
2005-10-02 18:09:42 +00:00
4f1ebae4b7
(natstr): Member nat_connected is inappropriate, because it is
...
transient server state, not persistent game state. Remove.
(player_main, edit): Remove uses.
(coun): Use getplayer() instead of nat_connected. Delete the message
on command being out of order.
2005-10-02 17:01:15 +00:00
ed5ba9fe3e
(player_find_other): Replace by getplayer. player_find_other()
...
searches for a player other than US for country CNUM, which is in
state PS_PLAYING. Since there can be at most one player in state
PS_PLAYING, and no caller pass that player as US, they can simply use
getplayer() instead.
2005-10-02 16:30:43 +00:00
f6a8a14831
(getplayer): There may be multiple players for the same country in the
...
list of players, but at most one in state PS_PLAYING. getplayer()
used to get the one first in the list. However, its callers need the
one in state PS_PLAYING. In particular, typed_wu() notifies the
player obtained from getplayer(). If the player in state PS_PLAYING
isn't first, say because another one is trying to log in, the
notification gets lost. Fix by making getplayer() return the player
in state PS_PLAYING.
2005-10-02 16:21:41 +00:00
687cacd887
(SNEAK_ATTACK, opt_SNEAK_ATTACK, Options, do_sneak, att_abort)
...
(att_fight): Remove option SNEAK_ATTACK.
2005-10-02 14:35:18 +00:00
8733aa8a1a
(setrel): Relation change establishes contact like a telegram.
...
Partial fix for #857594 .
2005-10-02 11:04:31 +00:00
ad84132688
Remove some redundant parenthesis; no functional change.
2005-10-02 10:16:19 +00:00
745bdf7fd1
(prod_land, prod_ship): Simplify.
2005-10-02 10:15:59 +00:00
c9dbe828bc
(do_feed): Simplify.
...
(starvation): Pointless. Inline into do_feed() and remove.
(growfood): Doc clarification.
2005-10-01 18:44:25 +00:00
0c8f779356
(att_get_combat): Fix test whether land unit exists. Closes #1034283 .
...
(att_fight): Fix bad line break.
2005-10-01 16:39:41 +00:00
caac6e41ca
(get_assembly_point): New.
...
(bomb, drop, fly, para, reco): Use it.
2005-10-01 14:07:35 +00:00
267a9ef424
Don't point to ftp.wolfpackempire.com, it does not work.
2005-10-01 12:52:00 +00:00
1d88b8783a
(plist): Member state is used write-only, remove.
...
(P_OK, P_FIRED, P_DEL): Unused, remove.
2005-09-30 20:44:43 +00:00
a5b7465024
(N_FLAK, N_DISS_GOV, N_DECL_NEUT, N_RIOT, N_ASSAULT_LOSE): Unused,
...
remove.
(no_news): new.
(rpt): Use it for r_newsstory of unused slots.
2005-09-30 20:38:22 +00:00
ff8c7c249a
(empfile): Member itemoffs is unused since file.c rev. 1.15; remove.
2005-09-30 20:02:57 +00:00
09b0b83971
(IO_CONN, io_conn, IOQ_BUFSIZE, MAXIOV, LND_NOTANY, plur)
...
(techfactfire, reltech, P_DISTING, PLN_MAXDEF, filetruncate, sct_init)
(nxtsctp, AN_SAILDIR, UDTIMES_MAX, BLITZTIME): Unused, remove.
2005-09-30 19:51:32 +00:00
4be9c189cb
Unused.
2005-09-30 19:50:57 +00:00