dab1f0bc7d
(START_UNITS, start_unit_type, deity_build_land, new): Remove
...
undocumented compile-time option START_UNITS. It hasn't been used in
ages; writing a quick build script is easier than recompiling the
server.
2005-10-23 20:52:46 +00:00
7dbe2d5687
Clean up the previous revision.
2005-10-23 15:03:12 +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
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
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
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
Ron Koenderink
9180b23cfa
(do_conv) Remove CR.
2005-10-20 14:52:18 +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
2d47bff1f7
(set): Fix initialization of trd_y. The initial value is believed not
...
to be used.
2005-10-11 19:27:05 +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
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
e617eba026
(spy): Catching a spy makes contact.
2005-10-03 15:36:39 +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
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
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
caac6e41ca
(get_assembly_point): New.
...
(bomb, drop, fly, para, reco): Use it.
2005-10-01 14:07:35 +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
269913baee
(getpath): Parameter showxy makes no sense and is not used. Remove.
...
Get rid of s_char. Callers changed.
2005-09-25 17:00:50 +00:00
21a39fd9dd
(fly): Check for player aborting the command at the `transport what?'
...
prompt. Closes #771801 .
2005-09-25 16:39:44 +00:00
9731c24676
(deli): Diagnose invalid direction.
2005-09-25 10:05:39 +00:00
1fe759dc1e
(marc, navi, retreat_ship1, retreat_land1): Treat any negative value
...
of chkdir() as failure, not just -1.
2005-09-25 10:00:43 +00:00
dfa56cb0ef
(diridx): New. Use instead of chkdir() where direction characters
...
must be valid. Oopses on bad direction characters.
(pathtoxy, ac_encounter): Bad direction characters used to lead to bad
array subscript and potential disaster.
(pathrange, path): Stop on DIR_STOP as well as on bad direction
characters. This is just for consistency with other code; DIR_STOP
should occur only last in a path here.
(sail_nav_fleet, nav_ship): No change except for the oops.
2005-09-25 09:49:36 +00:00
5357aa15b9
(deli): Break the loop if player->aborted. Without that, it can
...
prompt for more input, violating the client protocol.
2005-09-23 17:37:28 +00:00
681a803ef6
(move): test command checked start sector for space and some other
...
things instead of end sector.
(move): test command now skips code dealing with return of goods to
start sector.
(want_to_abandon): Simplify.
2005-08-30 18:26:58 +00:00
a508a4c6e7
(do_conv): Use maximum population instead of 999 to limit number of
...
new uw.
2005-08-30 17:49:43 +00:00
41c67326bb
(shoo): Remove the arbitrary limit of 999 people to be shot.
2005-08-30 17:47:40 +00:00
4474c7b5c1
(ltend): Fix printing of land unit in diagnostic message.
2005-08-30 17:38:27 +00:00
ff0d9dede6
(nbomb): Rev. 1.17 made a questionable initializer incorrect, and thus
...
broke pin-bombing for hosts where sizeof(i_type) != sizeof(int). Fix.
2005-08-30 17:27:37 +00:00
Ron Koenderink
ef0dbf6790
(force): Change to create update thread instead of calling
...
empth_sleep() as the empth_sleep() can not be aborted for an update.
(update_force): New.
2005-08-20 19:16:56 +00:00
9bf3b1b64a
(show_opts): New, factored out of vers(). Fix output punctuation.
...
(vers): Fix output punctuation and grammar.
2005-07-31 17:42:14 +00:00
786b34c693
(SHIPNAMES, opt_SHIPNAMES, Options, carg, name, sorde, qorde)
...
(show_sail, shi, att_get_combat, pr_com, satdisp, satmap, prship):
Remove nooption SHIPNAMES.
2005-07-31 17:22:32 +00:00
df8845199e
(sorde): Output messed up for ships with sail path. Fix and
...
simplify. Remove inappropriate ship sanity check, should be done
elsewhere, and differently.
(qorde): Fix the previous rev.
2005-07-31 16:35:30 +00:00
4c37776458
(qorde): Output messed up for ships with sail path. Fix and
...
simplify. Remove inappropriate ship sanity check, should be done
elsewhere, and differently.
2005-07-31 16:19:03 +00:00
380b063f9c
Remove some redundant parenthesis; no functional change.
2005-07-23 19:48:35 +00:00
c41c45be61
Delete some code that has been disabled out for ages and looks
...
useless or wrong.
2005-07-23 18:35:07 +00:00
022685c47c
(sell): Prompting for `amount' is confusing: is it the amount of goods
...
to offer or amount of money to ask for?. Ask for `quantity' instead.
2005-07-23 16:50:43 +00:00
be1147e7f0
(bdes): Prompt was messed up when bmap contained designation 0.
2005-07-23 16:47:08 +00:00
Ron Koenderink
6484e52678
(stre): Fix to make it match what happens in attack sequence: land
...
units do not react to a mountain.
(stre): Add an empth_yield() per sector to make the server responsive
to other players as this command is CPU intensive.
2005-07-23 13:44:47 +00:00
Ron Koenderink
e332ff5fcc
(launch_sat): Incorrectly assumed that plane_mob_max is 127 when
...
calculating when the satellite will be ready for use.
2005-07-18 23:52:30 +00:00
0d57181966
Remove some dead, disabled code.
2005-06-23 19:21:18 +00:00
71e164ed30
Document, in particular use of UTF-8. Simplify code in a couple of
...
places, but no functional changes.
2005-06-13 19:02:49 +00:00