Ron Koenderink
50e4ef3e39
(xunsymbol): Fix xunsymbol() to parse multiple symbols for a
...
symbol_set (NSC_BITS).
2005-11-13 01:45:39 +00:00
Ron Koenderink
ede257e8f2
(xundump): Add prototypes.h to get a prototype for
...
xundump().
2005-11-13 00:34:24 +00:00
Ron Koenderink
b7be1fe113
(servercmd): Remove newline for C_INFORM, C_FLUSH,
...
C_REDIR, C_PIPE and C_EXECUTE.
Fixes the problem created when the newline was left in io_gets().
2005-11-12 20:16:07 +00:00
Ron Koenderink
2e655eaf96
(buil, vers, opt_NONUKES, show_nuke_build, show_nuke_capab):
...
Remove opt_NONUKES options. A nuke characteristics file can
be created with no entries to create the emulate the removed option.
2005-11-12 20:09:11 +00:00
caaee8cafa
(dchr_ca): prd indexes product table.
2005-11-12 17:32:32 +00:00
af824c3ed1
(EF_MISSION_FLAGS, EF_MISSIONS, mission_flags, missions): Rename, as
...
these are not flags.
2005-11-12 17:29:11 +00:00
Ron Koenderink
d8422caa84
(init_server, ef_load, xundump): Add ability to customize game
...
configurations. The custom game configurations are loaded via
text files in the data directory. Closes #752881 .
2005-11-12 16:53:52 +00:00
Ron Koenderink
0918d3c3fc
(io_gets, output): Remove the removal of \n in io_gets() and the
...
readdition of it in output().
2005-11-12 16:40:38 +00:00
Ron Koenderink
89e2b3b481
(servercmd, io_gets, output): Fix client to read lines longer than
...
1024 bytes from the server. Closes #1223255 .
2005-11-12 14:20:46 +00:00
Ron Koenderink
0b15696223
(xdump): Add EF_MAX check for table selection by number.
...
Fixes a crash when selecting a table over EF_MAX.
2005-11-12 13:38:01 +00:00
Ron Koenderink
0a44c4893e
(plane_flags, plane_ca): Add plane flags table.
...
(retreat_flags, ship_ca, land_ca, plane_ca): Add retreat flags table.
(nation_flags, nation_relations, nat_ca): Add nation flags and
nation relations tables.
(empfile_ca): Remove flags and file name fields.
They are internal and not needed by the client.
2005-11-09 22:56:43 +00:00
fd237f1722
(start_server, empth_start): Passed uninitialized sa_mask to
...
sigaction(). This used to broken only when SA_SIGINFO wasn't defined,
until main.c rev. 1.46 and pthread.c rev. 1.10 broke it
unconditionally.
2005-11-08 21:42:38 +00:00
66201f9d45
Fix bad line break.
2005-11-07 07:55:12 +00:00
4fb17a62c0
(ef_init_chr): Sentinel names are now null, simplify sentinel check.
2005-11-07 07:54:16 +00:00
Ron Koenderink
9200b7f84b
(init_server): Remove ef_load() call.
...
New function not ready yet, incorrectly
checked-in.
2005-11-07 00:07:25 +00:00
Ron Koenderink
d85323c476
(itm_maxno): Remove itm_maxno, it is not used.
2005-11-06 23:44:35 +00:00
Ron Koenderink
9ed76e90ac
(nullify_objects): Fix sentinel row checks for plchr, lchr and mchr loops.
2005-11-06 23:42:42 +00:00
e23d8a8fac
(shp_maxno): Variable's value is well-known constant N_MAXSHIPS + 1.
...
Useless, remove. Users changed to check mchr's sentinel, because
that's clearer than comparing the index to N_MAXSHIPS or sizeof(mchr)
/ sizeof(*mchr).
(mchr): Change sentinel's m_name to NULL.
2005-11-06 21:20:49 +00:00
47192c9079
(pln_maxno): Variable's value is well-known constant N_MAXPLANE + 1.
...
Useless, remove. Users changed to check plchr's sentinel, because
that's clearer than comparing the index to N_MAXPLANE or sizeof(plchr)
/ sizeof(*plchr).
(plchr): Change sentinel's pl_name to NULL.
2005-11-06 21:12:24 +00:00
6f1df90b69
(pstat): Remove inappropriate plane sanity check; should be done
...
elsewhere.
2005-11-06 21:06:35 +00:00
04c247f2da
(lnd_maxno): Variable's value is well-known constant N_MAXLAND + 1.
...
Useless, remove. Users changed to check lchr's sentinel, because
that's clearer than comparing the index to N_MAXLAND or sizeof(lchr) /
sizeof(*lchr).
(lchr): Change sentinel's l_name to NULL.
2005-11-06 20:59:38 +00:00
190cbaadf2
(carg, lcarg, fort, land, ldump, lsta, orde, payo, retr, lretr)
...
(cmd_sail_ship, cmd_unsail_ship, show_sail, sdump, shi, sstat, work):
Remove inappropriate ship/land sanity checks; should be done
elsewhere.
2005-11-06 20:54:59 +00:00
a7aea6c468
(show_nuke_build, show_nuke_capab): Simplify.
2005-11-06 20:37:57 +00:00
8c6529ded3
(nuk_maxno): Variable's value is well-known constant N_MAXNUKE + 1.
...
Useless, remove. Users changed to check nchr's sentinel, because
that's clearer than comparing the index to N_MAXNUKE or sizeof(nchr) /
sizeof(*nchr).
(nchr): Change sentinel's n_name to NULL.
2005-11-06 20:37:07 +00:00
856539fc54
(buil): Use typematch() to search for ship, plane, land unit and nuke
...
type. The old code didn't work correctly when "sbb super battleship"
came before "sb submarine" in mchr[].
2005-11-06 20:14:28 +00:00
100d0fc495
(arm, tran_nuke): Lookup of the nuke name was broken by nuke.h
...
rev. 1.10. Replace by typematch().
(arm): Simplify search for nuke at sector.
2005-11-06 20:01:51 +00:00
19953e6c22
(prd_maxno): Variable's value is well-known constant P_MDUST + 2.
...
Useless, remove. Users changed to check pchr's sentinel, because
that's clearer than comparing the index to P_MDUST or sizeof(pchr) /
sizeof(*pchr).
(pchr): Change sentinel's p_name and p_sname to NULL. Sentinel
checks changed.
2005-11-06 18:06:38 +00:00
Ron Koenderink
23f134aa75
(empfile,mission_flags,ship_ca,land_ca,plane_ca): Add mission flags table.
2005-11-06 13:43:09 +00:00
bee3f4aa88
(nullify_objects): Fix option NO_OIL. The attempt to remove ships
...
with capability M_OIL from mchr[] actually replaced them with
sentinels. Just clear the capability instead.
2005-11-06 12:06:10 +00:00
610b1cded4
(xdopt, xdver): Simplify the previous rev.
...
(xdump): Support selecting a dump by table number in addition to name.
2005-11-06 11:05:48 +00:00
5173f8cd07
(ef_ptr, ef_read): Oops on bad ID. Some callers rely on these
...
functions to fail at the end of the table. To support that, the first
ID beyond the end is not considered bad.
(ef_ensure_space): Oops on bad ID.
2005-11-06 11:01:37 +00:00
Ron Koenderink
8d03e1ce8e
(NSC_BITS): Remove the trailing comma as it is last row.
2005-11-05 20:25:16 +00:00
Ron Koenderink
613a9c52db
(install_service): Use the compiled in default for location of econfig
...
when the -e is not specified while creating a service.
2005-11-05 20:05:38 +00:00
Ron Koenderink
a16b3266ff
(xdhdr,xdhdr1,xditem,xdmeta,xdopt,xdver,xdfldnam):
...
Remove the column header.
Not need as the xdump meta is functional.
2005-11-05 17:46:17 +00:00
Ron Koenderink
ba5b1b0a79
(xdopt,xdver,xdump): Add meta data for opt and ver.
2005-11-05 01:49:47 +00:00
Ron Koenderink
0d0800f4ac
(xdmeta): Fix the printing of the number of rows dumped.
...
Incorrectly included the skipped rows.
2005-11-04 23:32:05 +00:00
a4fcd52cd0
(xdmeta): Don't dump meta data for stuff that is not dumped by
...
xdflds().
2005-11-04 19:56:47 +00:00
ae1f461058
(NSC_BITS): New.
...
(meta_flags): Update for it.
(ship_ca, mchr_ca, plane_ca, plchr_ca, land_ca, lchr_ca, nchr_ca)
treaty_ca, nat_ca, empfile_ca, mdchr_ca): Use it.
(symbol_ca): Move value selector to beginning of array.
(meta_flags): Downcase names.
2005-11-04 19:11:30 +00:00
Ron Koenderink
1b74e7ac42
(mission_short_name): Remove mission_short_name, not used.
2005-11-04 18:27:28 +00:00
b19c2a6c03
(nullify_objects): Patch intrchr[] according to opt_NO_LCMS,
...
opt_NO_HCMS. This fixes output of `show se b', which used not to
reflect these options.
(improve): Simplify.
2005-11-04 18:09:08 +00:00
b30f4e7591
(xdmeta): Fix rev. 1.36.
2005-11-04 12:44:33 +00:00
41bf5be715
(UNMAPPED_INIT, UNMAPPED_CACHE, ARRAY_INIT, ARRAY_TABLE, PTR_INIT)
...
(PTR_CACHE): Rename.
(ARRAY_CACHE): New.
(empfile): Use it to set csize of elements EF_SHIP_CHR, EF_PLANE_CHR,
EF_LAND_CHR, EF_NUKE_CHR.
(ef_init_chr): Now that empfile[]'s initializer sets csize, remove the
temporary csize initialization here. The value wasn't correct, but
better than nothing.
2005-11-03 18:25:26 +00:00
d71ab5a3e5
(perform_mission): Do not pass the sub-owner to nreport(). News
...
doesn't show it, but selectors do. Reported by Doug Wescott.
(nreport, ncache): Catch errors like the above. Catch bad event
argument while we're at it.
2005-11-03 17:40:16 +00:00
f2eaedfe75
(xdopt, xdver): Fix missing footer.
2005-11-03 09:24:52 +00:00
Ron Koenderink
66f61616cb
(xdmeta): Add NULL ca check.
...
Fixes a crash for xdump meta pow.
2005-11-03 00:03:55 +00:00
01ea570124
(ichr_ca, pchr_ca, sect_ca, dchr_ca, NSC_GENITEM, ship_ca, mchr_ca)
...
plane_ca, plchr_ca, land_ca, lchr_ca, nuke_ca, nchr_ca, treaty_ca)
loan_ca, news_ca, lost_ca, commodity_ca, trade_ca, nat_ca)
(empfile_ca): Move row index selector to beginning of array and set
its table. Set table for NSC_SITYPE(i_type), NSC_NATID, NSC_TYPEID
selectors.
(news_ca): Set selector action's table.
(commodity_ca, trade_ca): Set selector maxbidder's table.
2005-11-01 15:19:42 +00:00
bbc1ee8eb1
(trtstr): New members ef_type and trt_uid.
...
(do_treaty): Initialize them.
(treaty_ca): New selector uid.
2005-11-01 12:53:43 +00:00
ae9e7dad43
(ef_ptr): Null cache can't happen.
2005-10-31 21:26:16 +00:00
4cbb45d0e0
(ef_open): EFF_STATIC and cache not null can't happen.
...
(ef_open): Leave check of fd to do_write().
2005-10-30 18:48:55 +00:00
dd019b605c
(empfile_ca): Rename selector file_name to file, to match the member
...
name.
2005-10-30 16:52:10 +00:00