1786120f2a
Remove option SNEAK_ATTACK leftovers.
2005-10-23 09:26:15 +00:00
ba84b71f8d
(draw_map): Parameter bmap abused EF_MAP and EF_BMAP, and required the
...
silly EF_NMAP. Use characters instead: 'b' for bmap (was EF_BMAP),
't' for true bmap (was EF_MAP), 'r' for revert (was EF_MAP+EF_BMAP,
more sillness), and 'n' for nmap (was EF_NMAP). Callers changed.
(EF_NMAP): Remove.
2005-10-23 08:58:23 +00:00
a2ae5ebe5e
[NOSTRDUP]: Drop support for systems without strdup(). First commit
...
was incomplete.
2005-10-23 08:37:38 +00:00
f5a1430bcf
(map, draw_map): Remove undocumented feature that lets deities run map
...
as another country. It appeared around Chainsaw 3.0 and never fully
worked. See also #1335316 .
2005-10-23 08:32:49 +00:00
01c80490b9
(map): Fix rev. 1.4: it treated nmap as a bmap command.
2005-10-23 07:41:24 +00:00
bfd14661c5
(ef_close): Reset member fd.
...
(ef_open): Catch attempt to open open file.
2005-10-23 06:24:08 +00:00
a3dd70f8c0
(EFF_OPEN): New.
...
(ef_open): Restrict HOW to EFF_OPEN.
2005-10-23 06:17:14 +00:00
Ron Koenderink
dbff0608e5
(ship_ca,land_ca,plane_ca): Add missing EF_BAD for radius row in
...
NSC_GENITEM.
2005-10-22 23:53:46 +00:00
290e759998
(ef_open): Remove code killed by the previous revision.
2005-10-22 19:59:56 +00:00
01570d0923
[aix]: Remove special case include, I doubt it's necessary.
2005-10-22 19:31:44 +00:00
Ron Koenderink
a5952bab1e
[_NTSDK]: Remove _NTSDK not needed.
2005-10-22 19:19:16 +00:00
2802ce1863
(ef_open): Don't assume blksize() is the same for all files.
...
(ef_open): Ensure the cache has at least one slot.
2005-10-22 19:12:27 +00:00
Ron Koenderink
898aaf3d3d
(empfile, empfile_ca): New struct empfile member ef_uid.
2005-10-22 19:10:22 +00:00
2027ec8046
(blksize) [aix, sgi]: Drop special case; I bet these systems support
...
st_blksize by now.
2005-10-22 19:09:12 +00:00
b0f44690e5
(wripglob): No need to include misc.h since rev. 1.16.
2005-10-22 18:55:30 +00:00
7041932ae2
(ioq_destroy) [aix, NeXT]: Remove special case, which leaked memory,
...
because freeing it didn't work at some time. Well, it either works
now, or we'll find out what's wrong.
2005-10-22 18:28:11 +00:00
220ce8f00f
Ultrix is no longer supported, remove special case.
2005-10-22 18:24:01 +00:00
5270cc57f2
[NOSTRDUP]: Drop support for systems without strdup().
2005-10-22 18:12:22 +00:00
Ron Koenderink
fcf5c59513
(castr,empfile,ship_chr,plane_chr,land_chr,nuke_chr):
...
Add table index to castr to create a reference to the symbol table.
Add "ship chr flags" table to empfile.
Add "plane chr flags" table to empfile.
Add "land chr flags" table to empfile.
Add "nuke chr flags" table to empfile.
Add EF_SHIP_CHR_FLAGS reference to ship_chr.
Add EF_PLANE_CHR_FLAGS reference to plane_chr.
Add EF_LAND_CHR_FLAGS reference to land_chr.
Add EF_NUKE_CHR_FLAGS reference to nuke_chr.
(show_ship_capab,show_plane_capab,show_land_capab,
show_nuke_capab,ship_flags,land_flags,plane_flags,nuke_flags):
Move ship_flags nsc.c from show.c
Rename ship_flags to ship_chr_flags.
Move plane_flags nsc.c from show.c
Rename plane_flags to plane_chr_flags.
Move land_flags nsc.c from show.c
Rename land_flags to land_chr_flags.
Move nuke_flags nsc.c from show.c
Rename nuke_flags to nuke_chr_flags.
This is to accomodate future symbol table for EF_PLANE table.
2005-10-22 16:39:45 +00:00
Ron Koenderink
cf4faac293
(ef_init): Remove cadef member from fileinit,
...
insert directly into the empfile structure.
Add ef_type member to fileinit to identify rows with data.
Remove unused rows of fileinit.
2005-10-22 13:55:04 +00:00
Ron Koenderink
29d21997b9
(empfile[]) Add table of tables to empfile[].
2005-10-22 12:38:58 +00:00
c4c46190bf
(player_init): Fix initialization of sin. Some systems have a member
...
sin_zero and choke when it's not zeroed. INADDR_ANY wasn't converted
to network byte order, but since it's zero, the bug couldn't bite.
2005-10-22 10:23:20 +00:00
e24ade039f
(io_open, io_noblocking): FNDELAY is long obsolete, use O_NONBLOCK.
2005-10-22 10:18:07 +00:00
118d63ff7e
(new): Fix initialization of realms for players_at_00.
2005-10-22 10:12:18 +00:00
0ab9260151
(empfile, chr_camap): Merge chr_camap[] into empfile[]. No existing
...
user sees the new elements of empfile[].
(EF_SECTOR_CHR, EF_SHIP_CHR, EF_PLANE_CHR, EF_LAND_CHR, EF_NUKE_CHR)
(EF_TREATY_CHR, EF_ITEM, EF_INFRASTRUCTURE, EF_PRODUCT): New. Not yet
used.
(my_ef_byname): Replacement for ef_byname() that sees the new
elements.
(xdchr): Work with empfile[] instead of chr_camap[].
(xdump): Use my_ef_byname() instead of ef_byname() and
chridx_by_name().
(camap, chr_camap, chridx_by_name): Remove.
2005-10-21 19:38:37 +00:00
224cc6328a
Fix the previous revision.
2005-10-21 18:21:46 +00:00
160644f6ba
Another 4.2.23 change.
2005-10-21 18:20:20 +00:00
ee19f5f944
(show_opts): Pretend option SHIPNAMES still exists for the benefit of
...
clients that still depend on it.
2005-10-21 18:16:50 +00:00
cf426896af
Don't use conditional compilation to time out obsolete stuff. Do it
...
by hand.
2005-10-21 17:55:34 +00:00
c1ab03dd5e
Update for 4.2.23.
2005-10-21 05:58:30 +00:00
Ron Koenderink
9180b23cfa
(do_conv) Remove CR.
2005-10-20 14:52:18 +00:00
5c11488a2d
(INTERIXCFLAGS, LINUXCFLAGS, LINUXPTHCFLAGS): Don't define
...
LISTENMAXCONN; it's unused since src/lib/player/accept.c rev. 1.26.
That revision's change log is quite confused.
2005-10-19 18:18:17 +00:00
Ron Koenderink
c469d1f179
(do_conv) Move the initialization of the natp to be inside sector loop, this
...
allows the deity to use the research level of the sector owner. This also
fixes the use of an uninitialized sector data structure.
2005-10-18 16:11:19 +00:00
Ron Koenderink
542709fae3
(ichr_ca,pchr_ca,dchr_ca,mchr_ca,plchr_ca,lchr_ca,nchr_ca,
...
tchr_ca,rpt_ca,intrchr_ca ) Move from src/lib/commands/xdump.c
to src/lib/global/nsc.c; external linkage. They were created in
xdump.c to minimize initial impact on the source, but they
really belong to nsc.c, where other code can use them as well.
2005-10-18 12:14:10 +00:00
Ron Koenderink
583f66047c
(pin_bomb) Remove unused variable qp.
2005-10-18 12:12:15 +00:00
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